<?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: delfunc overriding</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/delfunc-overriding</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/delfunc-overriding/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Bugzee on delfunc overriding</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/delfunc-overriding#p23682</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/delfunc-overriding#p23682</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I&#39;m having the delfunc overridden as follows</p>
<p>delfunc: function (rowid)<br />{<br />&#160;&#160;&#160; $("#grid1").jqGrid(&#39;delGridRow&#39;, rowid,<br />&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; serializeDelData: function (postdata)<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; postdata.a = "grid1_event";<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; postdata.id = $("#grid1").jqGrid("getRowData", rowid)["col1"].toString();<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var l = { b: postdata };<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; postdata = JSON.stringify(l);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return postdata;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160; })<br />}</p>
<p>This works ok, the modal form is shown and clicking the delete button successfully deletes the record. <br />But the problem comes when I try to delete another record. <br />The model form shows but clicking the delete button causes a error at &#160;<br />"$("#grid1&#8243;).jqGrid("getRowData", rowid)["col1"].toString();". It seems that, after debugging in VS, </p>
<p>the rowid value is my old rowid value (from the previous delete), hence the rowid value does not reflect the new rowid. </p>
<p>I don&#39;t have this problem in my "editfunc" because "recreateForm" is true. But there is no such option here.<br />Is this a bug or am I using "delfunc" the wrong way?</p>
<p>I&#39;m using jqgrid 4.1 and jquery 1.6.1.</p>
<p>Thanks.</p>
]]></description>
        	        	<pubDate>Sun, 19 Jun 2011 12:39:13 +0300</pubDate>
        </item>
</channel>
</rss>