<?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: jqGrid Validation </title>
	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-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/jqgrid-validation/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>kazi on jqGrid Validation </title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-validation#p25204</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-validation#p25204</guid>
        	        	<description><![CDATA[<p>Hi ! I am very new in jqGrid. I am trying jqGrid and I have the following problem: After creating jqGrid I want to edit &#160;a row from the grid (row from sql table). &#160;How can be validated entry name (for example) with sql query &#160;using :</p>
<p>$onsubmit = &#60;&#60;&#60;ONSUBMIT</p>
<p>function(rowid,selected)</p>
<p>{</p>
<p><span style="white-space: pre;"> </span>(hire i have to execute some sql query)</p>
<p><span style="white-space: pre;"> </span>If (result of query &#160;is ok )</p>
<p><span style="white-space: pre;"> </span>{</p>
<p><span style="white-space: pre;"> </span>$grid-&#62;update();</p>
<p><span style="white-space: pre;"> </span>return(true,&#39;Update is ok&#39;);</p>
<p><span style="white-space: pre;"> </span>else {</p>
<p><span style="white-space: pre;"> </span>Return(false,&#39;Cannot update&#39;);</p>
<p><span style="white-space: pre;"> </span>}</p>
<p>}</p>
<p>ONSUBMIT;</p>
<p>$grid-&#62;setGridEvent(&#39;beforesubmit&#39;,$onsubmit);</p>
<div><span style="font-family: monospace, &#39;courier new&#39;; white-space: pre; background-color: #f5f5f5;"><br /></span></div>
]]></description>
        	        	<pubDate>Tue, 22 Nov 2011 12:13:06 +0200</pubDate>
        </item>
</channel>
</rss>