<?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: exception after successful delete in complete event handler</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/exception-after-successful-delete-in-complete-event-handler</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/exception-after-successful-delete-in-complete-event-handler/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>kobruleht on exception after successful delete in complete event handler</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/exception-after-successful-delete-in-complete-event-handler#p25524</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/exception-after-successful-delete-in-complete-event-handler#p25524</guid>
        	        	<description><![CDATA[<p>I tried&#160;&#160;</p>
<p><a href="http://www.ok-soft-gmbh.com/jqGrid/jquery.jqGrid-4.3.1/js/jquery.jqGrid.src-delete.js" rel="nofollow" target="_blank"><a href="http://www.ok-soft-gmbh.com/jq" rel="nofollow">http://www.ok-soft-gmbh.com/jq</a>.....-delete.js</a></p>
</p>
<p>using remote json data, row id is passed separately for every row like</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7368' value='Select Code' data-codeid='sfcode7368' /></p>
<div class='sfcode' id='sfcode7368'>{&#34;total&#34;:18,&#34;page&#34;:1,&#34;records&#34;:851,&#34;rows&#34;:[{&#34;id&#34;:&#34;444444&#34;,&#34;cell&#34;:[null,&#34;444444&#34;,&#34;0,00000&#34;,&#34;&#34;,&#34;0,00&#34;,&#34;&#34;,&#34;0,00000&#34;,&#34;&#34;,&#34;&#34;,&#34;20&#34;,&#34;501&#34;,&#34;&#34;,&#34;&#34;,&#34;&#34;,&#34;&#34;]},{&#34;id&#34;:&#34;_2EPUIT&#34;,&#34;cell&#34;:[null,&#34;.PUIT&#34;,&#34;0,00000&#34;,&#34;Taara&#34;,&#34;0,00&#34;,&#34;Puitpakend&#34;,&#34;0,00000&#34;,&#34;&#34;,&#34;&#34;,&#34;&#34;,&#34;&#34;,&#34;&#34;,&#34;TAARA&#34;,&#34;&#34;,&#34;&#34;]},{&#34;id&#34;:&#34;ERWEWERT&#34;,&#34;cell&#34;:[null,&#34;ERWEWERT&#34;,&#34;0,00000&#34;,&#34;&#34;,&#34;0,00&#34;,&#34;&#34;,&#34;0,00000&#34;,&#34;&#34;,&#34;&#34;,&#34;20&#34;,&#34;501&#34;,&#34;&#34;,&#34;&#34;,&#34;&#34;,&#34;&#34;]},{&#34;id&#34;:&#34;_2EMKLAASO&#34;,&#34;cell&#34;:[null,&#34;.MKLAASO&#34;,&#34;0,00000&#34;,&#34;Taara&#34;,&#34;0,00&#34;,&#34;Roheline ja muu klaaspakend&#34;,&#34;0,00000&#34;,&#34;&#34;,&#34;&#34;,&#34;&#34;,&#34;501&#34;,&#34;&#34;,&#34;TAARA&#34;,&#34;&#34;,&#34;&#34;]},{&#34;id&#34;:&#34;_2EPABER&#34;,&#34;cell&#34;:[null,&#34;.PABER&#34;,&#34;0,00000&#34;,&#34;Taara&#34;,&#34;0,00&#34;,&#34;Paber ja papppakenddddd&#34;,&#34;0,00000&#34;,&#34;&#34;,&#34;&#34;,&#34;&#34;,&#34;111&#34;,&#34;&#34;,&#34;TAARA&#34;,&#34;&#34;,&#34;&#34;]},{&#34;id&#34;:&#34;KROONID&#34;,&#34;cell&#34;:[null,&#34;KROONID&#34;,&#34;0,00000&#34;,&#34;&#34;,&#34;0,00&#34;,&#34;&#34;,&#34;0,00000&#34;,&#34;&#34;,&#34;&#34;,&#34;20&#34;,&#34;501&#34;,&#34;&#34;,&#34;&#34;,&#34;&#34;,&#34;&#34;]},{&#34;id&#34;:&#34;002&#34;,&#34;cell&#34;:[null,&#34;002&#34;,&#34;0,01667&#34;,&#34;Toodang&#34;,&#34;0,02&#34;,&#34;Kiiver roheline&#34;,&#34;0,25565&#34;,&#34;kott&#34;,&#34;Asel AS&#34;,&#34;20&#34;,&#34;501&#34;,&#34;tere&#34;,&#34;TOODANG&#34;,&#34;kott&#34;,&#34;37&#34;]},{&#34;id&#34;:&#34;003&#34;,&#34;cell&#34;:[null,&#34;003&#34;,&#34;0,02000&#34;,&#34;Kaup&#34;,&#34;0</div>
<p>jqGrid&#160;passes only first character from row id to Delete controller so it looks like it is not usable.</p>
]]></description>
        	        	<pubDate>Fri, 23 Dec 2011 15:10:30 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on exception after successful delete in complete event handler</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/exception-after-successful-delete-in-complete-event-handler#p25483</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/exception-after-successful-delete-in-complete-event-handler#p25483</guid>
        	        	<description><![CDATA[<p>I think that the origin of the described bug is the line <a href="https://github.com/tonytomov/jqGrid/blob/v4.3.1/js/grid.formedit.js#L1542" target="_blank">1542</a>:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit3597' value='Select Code' data-codeid='sfcode3597' /></p>
<div class='sfcode' id='sfcode3597'>postdata = postdata.split(&#34;,&#34;);</div>
<p>which modifys the postdata. The postdata variable will be used later not only the the line&#160;<a href="https://github.com/tonytomov/jqGrid/blob/v4.3.1/js/grid.formedit.js#L1577" target="_blank">1577</a>&#160;</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6769' value='Select Code' data-codeid='sfcode6769' /></p>
<div class='sfcode' id='sfcode6769'>toarr = postdata.split(&#34;,&#34;);</div>
<p>which you suggest to fix, but also in the line <a href="https://github.com/tonytomov/jqGrid/blob/v4.3.1/js/grid.formedit.js#L1589" target="_blank">1589</a></p>
<p><input type='button' class='sfcodeselect' name='sfselectit2596' value='Select Code' data-codeid='sfcode2596' /></p>
<div class='sfcode' id='sfcode2596'>setTimeout(function(){rp_ge[$t.p.id].afterComplete(data,postdata);},500);</div>
<p>as the parameter of the <strong>afterComplete</strong> callback function. In the version 4.1.2 and earlier the <strong>postdata</strong> was unchanged. First in the version 4.2.0 (see <a href="https://github.com/tonytomov/jqGrid/blob/v4.2.0/js/grid.formedit.js#L1539" target="_blank">here</a>) the problem appears. It was in <a href="https://github.com/tonytomov/jqGrid/commit/e927158f2de7f362fb6e6c7ff63461511a4e46e1#L0R1540" target="_blank">the long change</a>.</p>
<p>So I suggest to replace the lines <a href="https://github.com/tonytomov/jqGrid/blob/v4.3.1/js/grid.formedit.js#L1542-L1548" target="_blank">1542-1548</a></p>
<p><input type='button' class='sfcodeselect' name='sfselectit115' value='Select Code' data-codeid='sfcode115' /></p>
<div class='sfcode' id='sfcode115'>postdata = postdata.split(&#34;,&#34;);<br />for( var pk in postdata) {<br />&#160; &#160; if(postdata.hasOwnProperty(pk)) {<br />&#160; &#160; &#160; &#160; postdata[pk] = $.jgrid.stripPref($t.p.idPrefix, postdata[pk]);<br />&#160; &#160; }<br />}<br />postd[idname] = postdata.join();&#160;</div>
<p>to the following</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9240' value='Select Code' data-codeid='sfcode9240' /></p>
<div class='sfcode' id='sfcode9240'>var pdArray = postdata.split(&#34;,&#34;), j;<br />for (j=0; j&#60;pdArray.length; j++) {<br />&#160; &#160; pdArray[j] = $.jgrid.stripPref($t.p.idPrefix, postdata[j]);<br />}<br />postd[idname] = pdArray.join();&#160;</div>
<p>Best regards<br />Oleg</p>
<p>P.S. The modified version of jquery.jqGrid.src.js (for testing of the fix) you can get <a href="http://www.ok-soft-gmbh.com/jqGrid/jquery.jqGrid-4.3.1/js/jquery.jqGrid.src-delete.js" target="_blank">here</a>.</p></p>
]]></description>
        	        	<pubDate>Tue, 20 Dec 2011 15:45:27 +0200</pubDate>
        </item>
        <item>
        	<title>kobruleht on exception after successful delete in complete event handler</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/exception-after-successful-delete-in-complete-event-handler#p25481</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/exception-after-successful-delete-in-complete-event-handler#p25481</guid>
        	        	<description><![CDATA[<p>I added push request for this issue. One line fix but after editing with visual studio formatting also was changed</p>
<p><a href="https://github.com/kobruleht/jqGrid/commit/3bbb6d8f0285aec0cb45fd7b2e98b6cdccddc645" target="_blank">https://github.com/kobruleht/jqGrid/commit/3bbb6d8f0285aec0cb45fd7b2e98b6cdccddc645</a></p>
]]></description>
        	        	<pubDate>Tue, 20 Dec 2011 13:23:44 +0200</pubDate>
        </item>
        <item>
        	<title>kobruleht on exception after successful delete in complete event handler</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/exception-after-successful-delete-in-complete-event-handler#p25447</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/exception-after-successful-delete-in-complete-event-handler#p25447</guid>
        	        	<description><![CDATA[<p>If row is deleted using call to server, exception</p>
</p>
<p>Object doen&#39;t support property or method split</p>
<p>occurs in delete complete handler in jquery.jqGrid.src.js file near line 8273<br />&#160;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;toarr = postdata.split(",");</p>
<p>&#160;postdata is already array parsed already near line 8239</p>
<p>postdata = postdata.split(",");</p>
<p>and thus it does not contain split method.</p>
<p>Replacing this line with</p>
<p>toarr = postdata;</p>
<p>fixes it.</p>
<p>How about fixing this ?</p>
]]></description>
        	        	<pubDate>Sat, 17 Dec 2011 20:58:50 +0200</pubDate>
        </item>
</channel>
</rss>