<?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-1</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-1/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-1#p14131</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/beforesavecellhandler-firing-twice-1#p14131</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>This is double post - so see the answer with the same topic name</p>
]]></description>
        	        	<pubDate>Fri, 22 Jan 2010 10:57:56 +0200</pubDate>
        </item>
        <item>
        	<title>Jayesh on BeforeSaveCellHandler firing twice</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/beforesavecellhandler-firing-twice-1#p14089</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/beforesavecellhandler-firing-twice-1#p14089</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>