<?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: subgrid data </title>
	<link>http://www.trirand.com/blog/?page_id=393/help/subgrid-data</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/subgrid-data/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on subgrid data </title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/subgrid-data#p28270</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/subgrid-data#p28270</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>You can use the <a href="/jqgridwiki/doku.php?id=wiki:methods&#38;s[]=getrowdata" target="_blank">getRowData</a> method.</p>
<p>If you know the id you can get the entrie row of the grid, instead that some fields are hidden.</p>
<p>So you code of subGridRowExpanded cal look like</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9132' value='Select Code' data-codeid='sfcode9132' /></p>
<div class='sfcode' id='sfcode9132'>
<p>....</p>
<p>subGridRowExpanded : function(subgrid_id, row_id) {</p>
<p>&#160;&#160; var selectedrow = $(this).jqGrid(&#39;getRowData&#39;, row_id);</p>
<p>&#160;&#160; // now you can use selectedrow.myhiddenfield</p>
<p>&#160; ...</p>
<p>},</p>
<p>...</p>
</div>
<p>Regards</p>
]]></description>
        	        	<pubDate>Thu, 14 Feb 2013 10:00:22 +0200</pubDate>
        </item>
        <item>
        	<title>pdadev on subgrid data </title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/subgrid-data#p28265</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/subgrid-data#p28265</guid>
        	        	<description><![CDATA[<p>I&#39;m a newbie to jqgrid. This is what I&#39;m planning to do....</p>
<p>I have a working jqgrid with all the data . When a user clicks on a row, I want to show additional details for that row , all the data for the details are in the gris as hidden .</p>
<p>My question is how do I retrieve the data for that particular row which is hidden in the parent grid. I was using "+$("#grid").getCell (postdata, &#39;deviceName&#39;) , but of no use...</p>
</p>
<p>Here is my code</p>
<p>&#160;&#160;&#160; &#60;script type=&#39;text/javascript&#39;&#62;<br />&#160;&#160; &#160;$(function() {<br />&#160;&#160; &#160;&#160;&#160; &#160;$("#grid").jqGrid({<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;url:&#39;${recordsUrl}&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;datatype: &#39;json&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;mtype: &#39;GET&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;colNames:[&#39;serverId&#39;, &#39;deviceName&#39;, &#39;businessUnit&#39;],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;colModel:[<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;serverId&#39;,index:&#39;serverId&#39;, width:100, editable:true, editrules:{required:true}, editoptions:{size:10}},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;deviceName&#39;,index:&#39;deviceName&#39;, width:100, editable:true, editrules:{required:true}, editoptions:{size:10}},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;businessUnit&#39;,index:&#39;businessUnit&#39;, width:50, editable:true, editrules:{required:true}, editoptions:{size:10}}<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;postData: {},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;rowNum:10,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;rowList:[10,20,40,60],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;height: 240,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;autowidth: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;rownumbers: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;pager: &#39;#pager&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;sortname: &#39;serverId&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; sortorder: "asc",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; caption:"Records",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; subGrid: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; subGridRowExpanded: function(subgrid_id, row_id) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var html = "&#60;span&#62;ZZ19 Some HTML text which corresponds the row with id=<span style="color: #ff0000;">"+$("#grid").getCell (postdata, &#39;deviceName&#39;)</span>+<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; row_id + " xxy &#60;/span&#62;&#60;br/&#62;";<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#" + subgrid_id).append(html);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; },<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; emptyrecords: "Empty records",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; loadonce: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; loadComplete: function() {},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; jsonReader : {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; root: "rows",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; page: "page",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; total: "total",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; records: "records",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; repeatitems: false,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; cell: "cell",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; id: "serverId"<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; }<br />&#160;&#160; &#160;&#160;&#160; &#160;});</p>
]]></description>
        	        	<pubDate>Wed, 13 Feb 2013 16:07:36 +0200</pubDate>
        </item>
</channel>
</rss>