<?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: Help with custom validation edit form &#62; can I validate against 2 columns</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/help-with-custom-validation-edit-form-can-i-validate-against-2-columns</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/help-with-custom-validation-edit-form-can-i-validate-against-2-columns/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Help with custom validation edit form &#62; can I validate against 2 columns</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/help-with-custom-validation-edit-form-can-i-validate-against-2-columns#p14567</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/help-with-custom-validation-edit-form-can-i-validate-against-2-columns#p14567</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>If you use form edit you can get the value of the others fields</p>
<p>using $("#mycolname").val() - where the mycolname is the name from colModel.</p>
<p>For other id&#39;s names refer to the appropriate documentation to see how they are constructed.</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 05 Feb 2010 11:54:50 +0200</pubDate>
        </item>
        <item>
        	<title>gammax500 on Help with custom validation edit form &#62; can I validate against 2 columns</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/help-with-custom-validation-edit-form-can-i-validate-against-2-columns#p14509</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/help-with-custom-validation-edit-form-can-i-validate-against-2-columns#p14509</guid>
        	        	<description><![CDATA[<p>I have a custom validation function which I would like to validate against 2 defined columns, that is: if column "locked_flag" is "Y" AND there is no value for "locked_date", then validation would fail with an error message.&#160;</p>
<p>How can I do this? (refer to a different column from the one I am validating)</p>
<p>Something like:&#160;</p>
<p>colModel: [</p>
<p>{name:&#39;locked_flag&#39;,index:&#39;locked_flag&#39; editrules:{ custom:true,custom_func:lockedvalid } ...</p>
<p>{name:&#39;locked_date&#39;,index:&#39;locked_date&#39;, .....</p>
<p>]</p>
</p>
<p>function lockedvalid(value){<br />&#160;&#160; &#160; <br />&#160;&#160; &#160;&#160;&#160; &#160;if (value == &#39;Y&#39; &#38;&#38; locked_date.length == 0 ) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;return [false,&#39;Please enter a date to lock this record...&#39;,&#39;&#39;];<br />&#160;&#160; &#160;&#160;&#160; &#160;}<br />&#160;&#160; &#160;&#160;&#160; &#160;return [true,&#39;&#39;,&#39;&#39;];<br />&#160;&#160; &#160;}</p>
]]></description>
        	        	<pubDate>Wed, 03 Feb 2010 00:33:10 +0200</pubDate>
        </item>
</channel>
</rss>