<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: Regexp validation</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/regexp-validation</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/feature-request/regexp-validation/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Yajo on Regexp validation</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/regexp-validation#p11071</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/regexp-validation#p11071</guid>
        	        	<description><![CDATA[<p>I saw it, but i&#39;m sending automatically-generated json data from a PHP class to generate the grids, and the json parser can&#39;t send functions, so it would be more helpful for me the regexp option because it&#39;s only string-based.</p>
<p>Anyway, it&#39;s just an idea, if you think it&#39;s unnecessary, I can implement it by myself.</p>
<p>Thanks for all!</p>
]]></description>
        	        	<pubDate>Mon, 26 Oct 2009 06:57:59 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Regexp validation</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/regexp-validation#p11036</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/regexp-validation#p11036</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>No need to to do it so complex. Also the 3.6 version offers a custom validation where you can do it simple like this:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9122' value='Select Code' data-codeid='sfcode9122' /></p>
<div class='sfcode' id='sfcode9122'>
<p>colModel: [</p>
<p>...</p>
<p>{ name :&#39;some&#39;,..., editrules : {custom:true, custom_func: myfunc ... },</p>
<p>..</p>
<p>]</p>
</div>
<p>Where myfunc should return true or false depending on your need. See the 3.6 demos</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 23 Oct 2009 11:15:10 +0300</pubDate>
        </item>
        <item>
        	<title>Yajo on Regexp validation</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/regexp-validation#p11018</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/regexp-validation#p11018</guid>
        	        	<description><![CDATA[<p>I think it will be very easy and not too hard to implement input validation by passing a string to use as a regexp. For example, a colmodel could be like:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9669' value='Select Code' data-codeid='sfcode9669' /></p>
<div class='sfcode' id='sfcode9669'>
<p>...</p>
<p>&#160;colModel:{</p>
<p>&#160; editrules:{</p>
<p>&#160;&#160; regexpPattern: &#39;^[xy0-9]\\d{7}[a-z]$&#39;,</p>
<p>&#160;&#160; regexpFlags: &#39;i&#39;,</p>
<p>&#160;&#160; regexpMessage: &#39;The value must be X or Y followed by 7 numbers and a letter, or 8 numbers and a letter&#39;</p>
<p>&#160; }</p>
<p>&#160;}</p>
</div>
<p>This will work for a spanish ID, for example.</p>
<p>This is approximately the function you should put at the end of any other validations:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1048' value='Select Code' data-codeid='sfcode1048' /></p>
<div class='sfcode' id='sfcode1048'>if(colModel.editrules.regexpPattern != null &#38;&#38; RegExp(colModel.editrules.regexpPattern, colModel.editrules.regexpFlags).test($(input_element).val())) raise_error(colModel.editrules.regexpMessage);</div>
</p>
<p>&#191;What do you think of the idea?</p></p>
]]></description>
        	        	<pubDate>Fri, 23 Oct 2009 06:46:35 +0300</pubDate>
        </item>
</channel>
</rss>