<?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: jquery grid getRowData has problem  after delRowData</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/jquery-grid-getrowdata-has-problem-after-delrowdata</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/jquery-grid-getrowdata-has-problem-after-delrowdata/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>omrcm on jquery grid getRowData has problem  after delRowData</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/jquery-grid-getrowdata-has-problem-after-delrowdata#p26415</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/jquery-grid-getrowdata-has-problem-after-delrowdata#p26415</guid>
        	        	<description><![CDATA[<blockquote>
<p>omrcm said:</p>
<p>Hi Tony,</p>
<p>I have de same problem and I use this function to fixed but the fire bug give me this error ;</p>
<p>"getDataIDs is not a function"</p>
<p>I use jQgrid &#160;3.7.2 .</p>
<p>I delete one row from the list with the method ;</p>
<p>jQuery("#gridName").jqGrid(&#39;delRowData&#39;,rowId);</p>
</p>
</blockquote>
<hr />
<p>I have fixed the problem.</p>
</p>
<p>this whas my first code ;</p>
<p>var gridCount = jQuery("#gridName").jqGrid(&#39;getGridParam&#39;, &#39;records&#39;);</p>
</p>
<p>for ( i=0; i &#60;gridCount ; i++){</p>
<p>}</p>
</p>
<p>I change it with this ;</p>
</p>
<p>var ids = jQuery("#gridName").jqGrid(&#39;getDataIDs&#39;);</p>
<p>for ( i=0; i &#60;ids.length; i++){</p>
<p>}</p></p>
]]></description>
        	        	<pubDate>Thu, 19 Apr 2012 10:25:47 +0300</pubDate>
        </item>
        <item>
        	<title>omrcm on jquery grid getRowData has problem  after delRowData</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/jquery-grid-getrowdata-has-problem-after-delrowdata#p26414</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/jquery-grid-getrowdata-has-problem-after-delrowdata#p26414</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
<p>I have de same problem and I use this function to fixed but the fire bug give me this error ;</p>
<p>"getDataIDs is not a function"</p>
<p>I use jQgrid &#160;3.7.2 .</p>
<p>I delete one row from the list with the method ;</p>
<p>jQuery("#gridName").jqGrid(&#39;delRowData&#39;,rowId);</p></p>
]]></description>
        	        	<pubDate>Thu, 19 Apr 2012 09:55:06 +0300</pubDate>
        </item>
        <item>
        	<title>ivanchain on jquery grid getRowData has problem  after delRowData</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/jquery-grid-getrowdata-has-problem-after-delrowdata#p19103</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/jquery-grid-getrowdata-has-problem-after-delrowdata#p19103</guid>
        	        	<description><![CDATA[<p>Tony, I have tried the solution, yes, the undefined is gone way.</p>
</p>
<p>thank you so much!</p>
<p>yours,</p>
<p>Ivan</p>
]]></description>
        	        	<pubDate>Thu, 12 Aug 2010 12:05:40 +0300</pubDate>
        </item>
        <item>
        	<title>ivanchain on jquery grid getRowData has problem  after delRowData</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/jquery-grid-getrowdata-has-problem-after-delrowdata#p19102</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/jquery-grid-getrowdata-has-problem-after-delrowdata#p19102</guid>
        	        	<description><![CDATA[<p>thank you tony, but:</p>
<p>how could var kpiid = grid2.getRowData(currentnum[i]);&#160; get out the value of kpiid??</p>
</p>
<p>you mean grid2.getRowData(currentnum[i])["kpiid"];&#160;?</p>
<p>yours,</p>
<p>Ivan</p>
]]></description>
        	        	<pubDate>Thu, 12 Aug 2010 12:00:29 +0300</pubDate>
        </item>
        <item>
        	<title>tony on jquery grid getRowData has problem  after delRowData</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/jquery-grid-getrowdata-has-problem-after-delrowdata#p19100</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/jquery-grid-getrowdata-has-problem-after-delrowdata#p19100</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thanks, but I think you mixed a lot of things.</p>
<p>First you do delete using rowid and then you use a counter to get the data and not id.</p>
<p>In order to test use this:</p>
<p>&#160;var currentnum =grid2.getDataIDs();</p>
</p>
<p>for(var i=0;i&#60;currentnum.length;i++)</p>
<p>{</p>
<p>var kpiid = grid2.getRowData(currentnum[i]);</p>
</p>
<p>}</p>
</p>
<p>Let me know if you have undefined</p>
]]></description>
        	        	<pubDate>Thu, 12 Aug 2010 10:45:19 +0300</pubDate>
        </item>
        <item>
        	<title>ivanchain on jquery grid getRowData has problem  after delRowData</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/jquery-grid-getrowdata-has-problem-after-delrowdata#p19097</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/jquery-grid-getrowdata-has-problem-after-delrowdata#p19097</guid>
        	        	<description><![CDATA[</p>
<p>Hi, tony, I found a problem in 3.6</p>
</p>
<p>I just do such things:</p>
<p>&#160; jQuery("#list2").delRowData(rowid);</p>
<p>&#160;//this remove the row successfully.</p>
</p>
<p>&#160;var grid2 = jQuery("#list2");<br />&#160;var currentnum =grid2.getGridParam("records");</p>
<p>&#160;for(var i=1;i&#60;=currentnum;i++)<br />&#160; {<br />&#160;&#160;&#160;&#160;&#160; var kpiid = grid2.getRowData(i)["kpiid"];<br />&#160;&#160;&#160;&#160;&#160;&#160;alert(kpiid);&#160; <br />}</p>
</p>
<p>if the&#160; jQuery("#list2").delRowData(rowid) delete the last row of the grid, everything is ok. but if the rowid be deleted is in the middle or first of the rows,&#160; the alert(kpiid) will give "undefined".</p>
</p>
<p>For example, there are 5 records in the grid, the frist rows&#39;s kpiid cell is &#39;247&#39;, the second row&#39;s kpiid cell is &#39;258&#39;. If i delete the first row by delRowData, yes, it&#160;seems to&#160;be remove from the grid. But in the&#160; for {alert()}, it will show &#39;undefined&#39; at first circulation<br />, and show &#39;258&#39; in the 2nd circulation. Just like the first row STILL point to the origin row(247), which should have been removed just now.&#160; It seems that the grid not really remove it, but set it&#39;s data to undefined, but just let it not be seen from outside.</p>
</p>
<p>yours,</p>
<p>Ivan</p></p>
]]></description>
        	        	<pubDate>Thu, 12 Aug 2010 09:54:51 +0300</pubDate>
        </item>
</channel>
</rss>