<?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: Bug with delGridRow, object being treated as a string</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/bug-with-delgridrow-object-being-treated-as-a-string</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/bug-with-delgridrow-object-being-treated-as-a-string/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Bug with delGridRow, object being treated as a string</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/bug-with-delgridrow-object-being-treated-as-a-string#p25855</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/bug-with-delgridrow-object-being-treated-as-a-string#p25855</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Just fixed the problem.</p>
<p><a href="https://github.com/tonytomov/jqGrid/commit/5ab94c7e8bf9e1f5df29923ce4384d71ef357469" rel="nofollow" target="_blank">https://github.com/tonytomov/jqGrid/commit/5ab94c7e8bf9e1f5df29923ce4384d71ef357469</a></p>
<p>Thanks</p></p>
]]></description>
        	        	<pubDate>Wed, 01 Feb 2012 09:33:34 +0200</pubDate>
        </item>
        <item>
        	<title>A415Hz on Bug with delGridRow, object being treated as a string</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/bug-with-delgridrow-object-being-treated-as-a-string#p25854</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/bug-with-delgridrow-object-being-treated-as-a-string#p25854</guid>
        	        	<description><![CDATA[<p>Yeah, when I press "delete", the modal popup does not go away even after the record is successfully deleted</p>
<p>I can also confirm that line&#160;8282 is causing the issue</p>
</p>
<p>toarr = postdata.split(",");</p>
</p>
<p>error message from chrome inspect element console:</p>
</p>
<p>Uncaught TypeError: Object 2140 has no method &#39;split&#39;</p>
]]></description>
        	        	<pubDate>Tue, 31 Jan 2012 23:42:22 +0200</pubDate>
        </item>
        <item>
        	<title>davgino on Bug with delGridRow, object being treated as a string</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/bug-with-delgridrow-object-being-treated-as-a-string#p25830</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/bug-with-delgridrow-object-being-treated-as-a-string#p25830</guid>
        	        	<description><![CDATA[<p>This error occurs on site (<a href="http://trirand.com/blog/jqgrid/jqgrid.html" rel="nofollow" target="_blank"><a href="http://trirand.com/blog/jqgrid" rel="nofollow">http://trirand.com/blog/jqgrid</a>.....qgrid.html</a>) -&#62; Live Data Manipulation -&#62; Delete Row.....</p>
]]></description>
        	        	<pubDate>Sat, 28 Jan 2012 22:31:05 +0200</pubDate>
        </item>
        <item>
        	<title>dribbons on Bug with delGridRow, object being treated as a string</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/bug-with-delgridrow-object-being-treated-as-a-string#p25589</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/bug-with-delgridrow-object-being-treated-as-a-string#p25589</guid>
        	        	<description><![CDATA[<p>On line 8247 of the 4.3.1 non-min source, you split the postdata.</p>
</p>
<p>postdata = postdata.split(",");</p>
<p>for( var pk in postdata) {<br />&#160;&#160;&#160; if(postdata.hasOwnProperty(pk)) {<br />&#160;&#160; &#160;&#160;&#160;&#160; postdata[pk] = $.jgrid.stripPref($t.p.idPrefix, postdata[pk]);<br />&#160;&#160;&#160; }<br />}</p>
<p>postd[idname] = postdata.join();</p>
</p>
<p>Now on line 8282, you try to split it again, this throws an error because the object cannot be split</p>
<p>var toarr = [];<br />toarr = postdata.split(",");</p>
</p>
<p>I hand patched in the code below and the error goes away and my code executes as expected.&#160;</p>
<p>toarr = (typeof postdata == "string") ? postdata.split(",") : postdata;</p>
</p>
<p>-- Edit</p>
<p>Looks like this is a known issue, I&#39;ll use my patch until your patch, sorry for the dup</p></p>
]]></description>
        	        	<pubDate>Wed, 04 Jan 2012 23:38:37 +0200</pubDate>
        </item>
</channel>
</rss>