<?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: Custom Validation Inline (custom_func &#38; inline)</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/custom-validation-inline-custom_func-inline</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/custom-validation-inline-custom_func-inline/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>iaejean on Custom Validation Inline (custom_func &#38; inline)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-validation-inline-custom_func-inline#p23945</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-validation-inline-custom_func-inline#p23945</guid>
        	        	<description><![CDATA[<blockquote>
<p>kobruleht said:</p>
<p>Add edittype: &#39;custom&#39;</p>
</blockquote>
<hr />
<p>Thanks kobruleht!!, </p>
<p>But where should add it? I&#39;m totally newbie XD</p>
</p>
<p>Thanks A lot!</p>
]]></description>
        	        	<pubDate>Tue, 12 Jul 2011 21:43:12 +0300</pubDate>
        </item>
        <item>
        	<title>kobruleht on Custom Validation Inline (custom_func &#38; inline)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-validation-inline-custom_func-inline#p23942</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-validation-inline-custom_func-inline#p23942</guid>
        	        	<description><![CDATA[<p>Add edittype: &#39;custom&#39;</p>
]]></description>
        	        	<pubDate>Tue, 12 Jul 2011 12:02:57 +0300</pubDate>
        </item>
        <item>
        	<title>iaejean on Custom Validation Inline (custom_func &#38; inline)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-validation-inline-custom_func-inline#p23937</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-validation-inline-custom_func-inline#p23937</guid>
        	        	<description><![CDATA[<p>Well, Hi, I&#39;m having little problems trying this, i have my grid with custom_func it&#39;s working but just using navGrid Form, but whe&#160; im trying to get on inline my custom_func isnt work, the others functions is working fine, here is my code:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2213' value='Select Code' data-codeid='sfcode2213' /></p>
<div class='sfcode' id='sfcode2213'>
<p>var lastse;</p>
<p>jQuery(&#34;#list&#34;).jqGrid({<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;url:&#39;/manager/directory/json&#39;, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;datatype: &#34;json&#34;, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;colNames:[&#39;ID&#39;,&#39;City&#39;,&#160; &#39;Min&#39;, &#39;Max&#39;, &#39;Const&#39;, &#39;Act&#39;, &#39;Next&#39;], <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;colModel:[ <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;directoryID&#39;,index:&#39;directoryID&#39;, width:20, sorttype:&#39;int&#39;, align:&#39;right&#39;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;city&#39;,index:&#39;city&#39;, width:150 }, &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;min&#39;,index:&#39;min&#39;, width:80, sorttype:&#39;int&#39;, align:&#39;right&#39;, editable: true, editrules:{custom:true, number:true, custom_func:fol}}, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;max&#39;,index:&#39;max&#39;, width:80, sorttype:&#39;int&#39;, align:&#39;right&#39;, editable: true, editrules:{required:true, number:true}}, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;const&#39;,index:&#39;const&#39;, width:80, sorttype:&#39;int&#39;, align:&#39;right&#39;, editable: true, editrules:{required:true, number:true}}, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;act&#39;,index:&#39;act&#39;, width:80, sorttype:&#39;int&#39;, align:&#39;right&#39;, editable: true, editrules:{required:true, number:true}}, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;next&#39;,index:&#39;next&#39;, width:80, sorttype:&#39;int&#39;, align:&#39;right&#39;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;], <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;onSelectRow: function(id){<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;if(id &#38;&#38; id!==lastse){<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;jQuery(&#39;#list&#39;).jqGrid(&#39;restoreRow&#39;,lastse);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;jQuery(&#39;#list&#39;).jqGrid(&#39;editRow&#39;,id,true);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; lastse=id;&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;}<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;editurl: &#34;manager/directory/insert&#34;, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;rowNum: 10,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;pager: &#39;#pager&#39;, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;sortname: &#39;city&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;sortorder: &#34;asc&#34;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;viewrecords: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;mtype: &#34;GET&#34;,&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;gridview: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;caption: &#34;Directory invetory&#34;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;loadonce: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;height: &#39;auto&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;width: &#39;700px&#39;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;}); <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; jQuery(&#34;#list&#34;).jqGrid(&#39;navGrid&#39;,&#39;#pager&#39;,{del:false, search:false, refresh:false, add:false, },//options <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{reloadAfterSubmit:true, closeAfterEdit:true} // edit options <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; function fol(value, colname) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;var id = jQuery(&#34;#list&#34;).jqGrid(&#39;getGridParam&#39;,&#39;selrow&#39;);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;var fol = jQuery(&#34;#list&#34;).jqGrid(&#39;getRowData&#39;,id); <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;if (value &#62; fol.max ) <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;return [false,&#34;Min value can&#39;t be &#60; tha Max value&#34;];<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;else <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;return [true,&#34;&#34;];<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;}</p>
</div>
<p>how can u see, im using inline &#38; navgrid, the validation works fine on 2 ways, but my custom_func is not working on inline mode, can someone to help me please?</p>
]]></description>
        	        	<pubDate>Mon, 11 Jul 2011 21:39:19 +0300</pubDate>
        </item>
</channel>
</rss>