<?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: saveRow when checkValues fails</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/saverow-when-checkvalues-fails</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/saverow-when-checkvalues-fails/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>postb99 on saveRow when checkValues fails</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/saverow-when-checkvalues-fails#p15770</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/saverow-when-checkvalues-fails#p15770</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>OK I understand what you mean and am trying to modify my code to do it this way.</p>
<p>Since I post to &#39;clientArray&#39;, the aftersavefunc is called with two arguments, the first being the row id, the second "true".</p>
<p>How can I get my jqGrid id in the aftersavefunc ? I need it to be passed to my ajax server call the aftersavefunc does.</p>
<p>I also have a problem with some specific data (some reference values related to the page that contains one or several jqGrids) I know the value of this data when I execute saveRow, but I cannot pass its value to the aftersavefunc. How can I do it ?</p>
</p>
<p>I don&#39;t know why we chose to post to &#39;clientArray&#39; but I guess this is related to the specific data we get here and there (they&#39;re computed server-side when we generate the javascript) and that are needed to make the save ajax call (contextual information).</p>
</p>
<p>Thank you for your input.</p>
</p>
<p>Barbara</p>
]]></description>
        	        	<pubDate>Wed, 17 Mar 2010 10:26:54 +0200</pubDate>
        </item>
        <item>
        	<title>tony on saveRow when checkValues fails</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/saverow-when-checkvalues-fails#p15736</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/saverow-when-checkvalues-fails#p15736</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>When we save the data locally as in your case this have sense, but when we save the data with ajax it is difficult to determine what to return since the method is executed and the ajax call continnue his execution and we do not know what to return.</p>
<p>I recommen you to put</p>
<p>callSaveList in aftersavefunc in order to resolve this problem</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 15 Mar 2010 21:31:14 +0200</pubDate>
        </item>
        <item>
        	<title>postb99 on saveRow when checkValues fails</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/saverow-when-checkvalues-fails#p15643</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/saverow-when-checkvalues-fails#p15643</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>We still use jqGrid v. 3.6.2 and cannot upgrade easily since we did some custom code mods, however I&#39;d like to know whether the following is a behavior, a bug, or some misunderstanding from me.</p>
</p>
<p>Server-side, I&#39;ve put the "required:true" in colModel editrules for a mandatory field.</p>
</p>
<p>When clicking on an edit inline button to save a new row, the javascript code I run is the following :</p>
</p>
<p>$(&#39;#WEBCONT___Row1__Cell0WL2&#39;).saveRow(&#39;1&#39;, false, &#39;clientArray&#39;);</p>
<p>callSaveList(&#39;ListUserInstitution&#39;,&#39;WEBCONT___Row1__Cell0WL2&#39;,&#39;1&#39;);</p>
<p>nanoNewRow(&#39;WEBCONT___Row1__Cell0WL2&#39;, &#39;1&#39;,&#39;W3sidXNlcl9pZCI6IjEwIn1d&#39;);</p>
</p>
<p>saveRow() performs the fields check and since a mandatory field isn&#39;t filled in (I save a new empty row) I get a modal dialog complaining about it. It&#39;s ok but what bugs me is that the callSaveList() ajax call is made despites it shouldn&#39;t (data is considered incorrect and should not be sent to server).</p>
</p>
<p>This wiki page doesn&#39;t deal with my test case :</p>
<p><a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:inline_editing&#038;s=saverow" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>.....;s=saverow</a></p>
</p>
<p>saveRow() returns the elements it deals with (dom element, "return this.each(function(){ ...") instead of true/false which I could then use to decide to save or not the data.</p>
</p>
<p>Is there a bug or a lack of documentation that would confuse me ? Thanks for your feedback and my apologies for dealing with jqGrid 3.6.2.</p>
</p>
<p>Barbara</p></p>
]]></description>
        	        	<pubDate>Fri, 12 Mar 2010 13:14:46 +0200</pubDate>
        </item>
</channel>
</rss>