<?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: to get the rowid of the nth row of the grid</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/to-get-the-rowid-of-the-nth-row-of-the-grid</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/to-get-the-rowid-of-the-nth-row-of-the-grid/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Meng Hai on to get the rowid of the nth row of the grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/to-get-the-rowid-of-the-nth-row-of-the-grid#p15159</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/to-get-the-rowid-of-the-nth-row-of-the-grid#p15159</guid>
        	        	<description><![CDATA[<p>Found the answer using $(&#39;#gridmain&#39;).jqGrid(&#39;getDataIDs&#39;);</p>
<p>It will return an array of ids for the visible grid.</p>
<p>So to get the nth rowid, i use:</p>
<p>var rids = $(&#39;#gridmain&#39;).jqGrid(&#39;getDataIDs&#39;);</p>
<p>var nth_row_id = rids[n-1]; //bec the row array starts from zero.</p>
<p>Hope it will help others, if interested.</p>
]]></description>
        	        	<pubDate>Thu, 25 Feb 2010 18:55:52 +0200</pubDate>
        </item>
        <item>
        	<title>Meng Hai on to get the rowid of the nth row of the grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/to-get-the-rowid-of-the-nth-row-of-the-grid#p15157</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/to-get-the-rowid-of-the-nth-row-of-the-grid#p15157</guid>
        	        	<description><![CDATA[<p>Hi, I want to be able to read all the contents in the cells - by means of looping.</p>
<p>I am able to get the total columns and total row of records in the grid.</p>
</p>
<p>I can do so using $(&#39;#gridmain&#39;).jqGrid(&#39;getCell&#39;, rowid, column no);</p>
<p>but the row id is not a serial number, it is an id pulled from a table.</p>
<p>I know that if a row is selected I can use: jQuery("#gridmain").jqGrid(&#39;getGridParam&#39;,&#39;selrow&#39;);</p>
</p>
<p>But what if a row is not selected and I want the rowid of the 3rd or 5th row of the grid?</p>
<p>Is there a method or function to get the rowid of the nth row so that i can apply $(&#39;#gridmain&#39;).jqGrid(&#39;getCell&#39;, rowid, column no); to get the content of the cell?</p>
<p>Thanks.</p></p>
]]></description>
        	        	<pubDate>Thu, 25 Feb 2010 17:28:25 +0200</pubDate>
        </item>
</channel>
</rss>