<?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 with getCell</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-getcell</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-with-getcell/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>pconrey on Problem with getCell</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-getcell#p14732</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-getcell#p14732</guid>
        	        	<description><![CDATA[<p>Close topic.&#160; I see the problem.&#160; Missing "#" on selector in event handler.</p>
]]></description>
        	        	<pubDate>Thu, 11 Feb 2010 22:26:38 +0200</pubDate>
        </item>
        <item>
        	<title>pconrey on Problem with getCell</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-getcell#p14730</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-getcell#p14730</guid>
        	        	<description><![CDATA[<p>I&#39;m having a problem getting data with getCell.&#160; Maybe it&#39;s just me doing  something wrong, but I don&#39;t see it.</p>
</p>
<p>I have the following grid defined:</p>
</p>
<p>&#160;  $("#grid").jqGrid({ <br /> &#160;&#160;&#160; datatype: "local", <br /> &#160;&#160;&#160; height: 208,<br /> &#160;&#160;&#160; colNames:[&#39;Id&#39;,  &#39;Process&#39;,&#39;Description&#39;,&#39;Parent&#39;,&#39;Tier&#39;,&#39;Affected&#39;,&#39;Active&#39;], <br /> &#160;&#160;&#160; colModel:[ <br /> &#160;&#160;&#160;&#160;&#160; {name:&#39;id&#39;, index: &#39;id&#39;, sortable: false, hidedlg: true, hidden:  true },<br /> &#160;&#160;&#160;&#160;&#160; {name:&#39;process&#39;, index:&#39;process&#39;, width:125 }, <br /> &#160;&#160;&#160;&#160;&#160; {name:&#39;description&#39;,index:&#39;desc&#39;, width:300}, <br /> &#160;&#160;&#160;&#160;&#160; {name:&#39;parent&#39;,index:&#39;parent&#39;, width:125 }, <br /> &#160;&#160;&#160;&#160;&#160; {name:&#39;tier&#39;,index:&#39;tier&#39;, width:60,  align:"right",sorttype:"int"}, <br /> &#160;&#160;&#160;&#160;&#160; {name:&#39;affected&#39;,index:&#39;affected&#39;, width:60, align:"right" }, <br /> &#160;&#160;&#160;&#160;&#160; {name:&#39;active&#39;,index:&#39;active&#39;, width:60, align:"right" }<br /> &#160;&#160;&#160; ], <br /> &#160;&#160;&#160; multiselect: false,<br /> &#160;&#160;&#160; hidegrid: false,<br /> &#160;&#160;&#160; forceFit: true,<br /> &#160;&#160;&#160; caption: "Processes",<br /> &#160;&#160;&#160; onSelectRow: grid_onSelectRow<br /> &#160; });</p>
</p>
<p>Example row data:</p>
<p>&#160;&#160;&#160;   {id:"93",process:"GPM",description:"CRM/GPM",parent_id:"12",parent:"Distribution",tier:"1",affected:true,active:true},   </p>
<p>I have a function defined to handle the  "onSelectRow" event:</p>
</p>
<p>&#160; function grid_onSelectRow(  rowid, status )<br /> &#160; {<br /> &#160;&#160;&#160; alert( rowid + ": " + status );<br /> &#160;&#160;&#160; var contents = $("grid").getCell(rowid, "id");<br /> &#160;&#160;&#160; alert( contents );<br /> &#160; }</p>
</p>
<p>but the final "alert" always displays "false". Incidentally, the first alert always displays the row number (1-6) and "true".</p>
<p>
What  am I doing wrong?</p>
]]></description>
        	        	<pubDate>Thu, 11 Feb 2010 20:36:41 +0200</pubDate>
        </item>
</channel>
</rss>