<?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: minlength validation</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/minlength-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/help/minlength-validation/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>inneed on minlength validation</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/minlength-validation#p22505</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/minlength-validation#p22505</guid>
        	        	<description><![CDATA[<p>1) minlenght, validation doesn&#180;t work</p>
<p>2) you can do a costum rule, and steel use the normal rules of jqGrid</p>
</p>
<p>my solution:</p>
</p>
<p>...</p>
<p>editrules:{&#160;required:true, custom:true, custom_func:myminlenght }</p>
<p>...</p>
<p>function (value, colname) {</p>
<p><span style="white-space: pre;"> </span>if (colname==&#39;password&#39; &#38;&#38; value.length &#60; 8){</p>
<p><span style="white-space: pre;"> </span>return [true,"",""];</p>
<p><span style="white-space: pre;"> </span>} else {</p>
<p><span style="white-space: pre;"> </span>return [false,"password must have more than 8 chars",""];</p>
<p><span style="white-space: pre;"> </span>}</p>
<p><span style="white-space: pre;"> </span>...</p>
<p>}</p>
]]></description>
        	        	<pubDate>Mon, 21 Mar 2011 22:34:06 +0200</pubDate>
        </item>
        <item>
        	<title>inneed on minlength validation</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/minlength-validation#p22478</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/minlength-validation#p22478</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>i&#180;m trying to use a minlength for the editForm, but it doesnt work,&#160;</p>
<p>i can use the maxlength, it works fine.</p>
</p>
<p>is there a property minlength for the form filds ?</p>
<p>or do i have to make a costum rule ?</p>
<p>if i make a costum rule can i steel use the normal rules?</p>
</p>
<p>thanks 4 helping</p>
]]></description>
        	        	<pubDate>Sun, 20 Mar 2011 02:40:33 +0200</pubDate>
        </item>
</channel>
</rss>