<?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: BeforeSaveCellHandler firing twice</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/beforesavecellhandler-firing-twice</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/bugs/beforesavecellhandler-firing-twice/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on BeforeSaveCellHandler firing twice</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/beforesavecellhandler-firing-twice#p14130</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/beforesavecellhandler-firing-twice#p14130</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>This is not possible at all. Please look here:</p>
<p><a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:cell_editing" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>.....ll_editing</a></p>
<p>and read carfully.</p>
<p>What you try to do is: you edit a cell and before save it you call edit cell again.</p>
<p>editCell try to save a opened cell.</p>
<p>I suggest you to try with the 3 parameter set to false, but not sure if this will meet your requierments</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 22 Jan 2010 10:56:41 +0200</pubDate>
        </item>
        <item>
        	<title>Jayesh on BeforeSaveCellHandler firing twice</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/beforesavecellhandler-firing-twice#p14088</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/beforesavecellhandler-firing-twice#p14088</guid>
        	        	<description><![CDATA[<p>Hi.</p>
<p>I&#160;am trying to add a new row to jqgrid when user enters quantity in the last row .At the same time I want&#160;to focus the first cell in the row which is added .Code is</p>
</p>
<p><span style="font-size: x-small;"></span></p>
<p>beforeSaveCell: function(rowid, cellname, value, iRow, iCol) {<br />if (jQuery(&#39;#NewTable&#39;).getGridParam(&#39;records&#39;) == (parseInt(iRow) + 1)) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (cellname == &#39;inputqty&#39;) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var datarow = { act: &#39;&#39;, abbrcode: "", funddescription: "", inputqty: "", inputpct: "", comtype: "",&#160;&#160;&#160; brokerofcredit: "", gross: "", commission: "", charges: "", net: "", hold: "" };<br />&#160;&#160;&#160;&#160;&#160;&#160;&#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;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#NewTable").addRowData(gCount, datarow); <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#NewTable").editCell(gCount, 2, true);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#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;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
</p>
<p>Problem is as the line is hit (jQuery("#NewTable").editCell(gCount, 2, true);) , it calls&#160; "beforeSaveCell" &#160;again ,which needs to be avoided.Any help appreciated .</p></p>
]]></description>
        	        	<pubDate>Wed, 20 Jan 2010 21:44:36 +0200</pubDate>
        </item>
</channel>
</rss>