<?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: Problem getting the row id</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/problem-getting-the-row-id</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/problem-getting-the-row-id/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>redsuitee on Problem getting the row id</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-getting-the-row-id#p6099</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-getting-the-row-id#p6099</guid>
        	        	<description><![CDATA[<p>key:true?<br />what is the effect if use it?</p>
]]></description>
        	        	<pubDate>Thu, 16 Apr 2009 04:50:07 +0300</pubDate>
        </item>
        <item>
        	<title>son on Problem getting the row id</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-getting-the-row-id#p6049</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-getting-the-row-id#p6049</guid>
        	        	<description><![CDATA[<p>Tony,</p>
<p>Thank you for our reply.</p>
<p>Actually, I got it a few days agobut just got the chance to respond now.</p>
<p>I didn&#39;t put the &#39;id&#39; in the <strong>function(id)</strong>&#160;when before called by the alert(id).</p>
</p>
<p>Son</p>
]]></description>
        	        	<pubDate>Wed, 15 Apr 2009 15:23:50 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Problem getting the row id</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-getting-the-row-id#p6001</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-getting-the-row-id#p6001</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>If you set key:true, you do not need to provide the id from server.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 14 Apr 2009 02:49:34 +0300</pubDate>
        </item>
        <item>
        	<title>son on Problem getting the row id</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-getting-the-row-id#p5950</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-getting-the-row-id#p5950</guid>
        	        	<description><![CDATA[<p>i am using the jqgrid example and added the onSelectRow to run some javascript code but I get undefined id and it can&#39;t find the row id even though I set the key and even&#160;set the row id in the&#160;server&#160;php code.</p>
<p>Here&#39;s the code:</p>
<p><span style="font-size: x-small;">jQuery(&#8221;#bigset&#8221;).jqGrid({ <span style="font-size: x-small;"><font style="font-size: x-small;" size="2"></font><font size="2"></font></span></span></p>
</p>
<p>url:&#39;bigset.php&#39;,</p>
<p>datatype: &#8220;json&#8221;,</p>
<p>height: 150,</p>
<p>colNames:[&#39;Index&#39;,&#39;Name&#39;, &#39;Code&#39;],</p>
<p>colModel:[</p>
<p>{name:&#39;id&#39;,index:&#39;item_id&#39;, <strong>key:true</strong>, width:65},</p>
<p>{name:&#39;item_name&#39;,index:&#39;item_name&#39;, width:150},</p>
<p>{name:&#39;item_cd&#39;,index:&#39;item_cd&#39;, width:100}</p>
<p>],</p>
<p>rowNum:5,</p>
<p>//rowList:[10,20,30],</p>
<p>imgpath: &#39;themes/basic/images&#39;,</p>
<p>mtype: &#8220;GET&#8221;,</p>
<p>pager: jQuery(&#39;#pagerb&#39;),</p>
<p>sortname: &#39;item_id&#39;,</p>
<p>viewrecords: true,</p>
<p>sortorder: &#8220;asc&#8221;,</p>
<p>onSelectRow: function() {alert(id);}</p>
<p>});</p>
<p>This is the section in php that sets the row id</p>
<p><font style="font-size: x-small;" size="2"></p>
<p></font></p>
<p><span style="font-size: x-small;">while($row = mysql_fetch_array($result,MYSQL_ASSOC)) {<font style="font-size: x-small;" size="2"></font></span></p>
</p>
<p>$responce-&#62;<strong>rows[$i][&#39;id&#39;]=$row[item_id];</strong></p>
<p>$responce-&#62;rows[$i][&#39;cell&#39;]=array($row[item_id], $row[item_name],$row[item_cd]);</p>
<p>$i++;</p>
<p>}</p>
</p>
<p>Your help&#160;will&#160;be highly&#160;appreciated.</p>
<p>Son&#160;</p>
]]></description>
        	        	<pubDate>Fri, 10 Apr 2009 09:39:15 +0300</pubDate>
        </item>
</channel>
</rss>