<?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 returned, but not displaying</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/subgrid-data-returned-but-not-displaying</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-returned-but-not-displaying/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Subgrid data returned, but not displaying</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/subgrid-data-returned-but-not-displaying#p11290</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/subgrid-data-returned-but-not-displaying#p11290</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Note that the data returned for the subgrid little differs of those for the grid. See demos and documentation.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 30 Oct 2009 07:41:15 +0200</pubDate>
        </item>
        <item>
        	<title>dsh0105 on Subgrid data returned, but not displaying</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/subgrid-data-returned-but-not-displaying#p11191</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/subgrid-data-returned-but-not-displaying#p11191</guid>
        	        	<description><![CDATA[<p>I have a frustrating problem with the subgrid. When clicking the "+" to enlarge a subgrid, Firebug shows that data is being returned, but the subgrid expands empty. My subgrid model is based on a similar subgrid that works correctly. For debguing, I&#39;ve reduced the subgrid to a single column (still no luck). Please advise.</p>
</p>
<p>Here is the code:</p>
<p>jQuery(document).ready(function(){ <br />&#160; jQuery("#list").jqGrid({<br />&#160;&#160;&#160; url:&#39;poquery.php?r_type=HIST_MAIN&#38;TESTING=YES&#39;,&#160;&#160;&#160; <br />&#160;&#160;&#160; datatype: &#39;json&#39;,<br />&#160;&#160;&#160; mtype: &#39;POST&#39;,<br />&#160;&#160;&#160; height: 625,<br />&#160;&#160;&#160; width:800,<br />&#160;&#160;&#160; colNames:[&#39;POKEY&#39;,&#39;PO Number &#39;,&#160;&#160;&#160; &#39;Date&#39;,&#39;Invoice&#39;,&#39;Buyer&#39;,&#39;Terms&#39;],<br />&#160;&#160;&#160; colModel :[ <br />&#160;&#160;&#160;&#160;&#160; {name:&#39;POKEY&#39;, index:&#39;HEFILE.DH_POHISTA.POKEY&#39;, width:45}, <br />&#160;&#160;&#160;&#160;&#160; {name:&#39;PONUMB&#39;, index:&#39;HEFILE.DH_POHISTA.PNUMB&#39;, width:45, formatter:fileLink}, <br />&#160;&#160;&#160;&#160;&#160; {name:&#39;PODATE&#39;, index:&#39;HEFILE.DH_POHISTA.PODATE&#39;, width:50},<br />&#160;&#160;&#160;&#160;&#160; {name:&#39;INVC&#39;, index:&#39;HEFILE.DH_POHISTA.INVC&#39;, width:25},<br />&#160;&#160;&#160;&#160;&#160; {name:&#39;BUYER&#39;, index:&#39;HEFILE.DH_POHITA.POINIT&#39;, width:70},&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160; {name:&#39;TERMS&#39;, index:&#39;HEFILE.DH_POHITA.TERMS&#39;, width:70},&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160; ],<br />&#160;&#160;&#160; onCellSelect: function(rowid,iCol, cellcontent,target)<br />&#160;&#160;&#160; &#160;&#160;&#160; {</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; },<br />&#160;&#160;&#160; pager: &#39;#pager&#39;,<br />&#160;&#160;&#160; rowNum:50,<br />&#160;&#160;&#160; rowList:[10,50,100],<br />&#160;&#160;&#160; sortname: &#39;PONUMB&#39;,<br />&#160;&#160;&#160; sortorder: &#39;desc&#39;,<br />&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160; caption: &#39;Purchase orders - Historical &#39;,<br />&#160;&#160;&#160; subGrid : true, subGridUrl: &#39;poquery.php?r_type=HIST_SUB&#38;TESTING=YES&#39;, <br />&#160;&#160;&#160; subGridModel: [{ name : [&#39;Line&#39;], <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; width : [50] } ], caption: "PO Detail" <br />&#160; })<br />&#160; <br />$("#s_button").click(function(){ jQuery("#list").searchGrid( <br />{sopt:[&#39;eq&#39;]} )});&#160;&#160; <br />&#160; <br />&#160; $("#mysearch").filterGrid("list",{<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; formtype:"vertical",</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; formclass:"filterform",<br />filterModel: [<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {label:&#39;LableFild&#39;, name: &#39;colname&#39;, stype: &#39;text&#39;, defval: &#39;default_value&#39;, surl: &#39;someurl&#39;, }],<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; enableSearch: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; enableClear:false,<br />&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160; searchButton:"Search",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; autosearch:false,<br />&#160;&#160;&#160; });&#160;&#160;&#160; </p>
<p>&#160;});</p>
<p>Here is a sample of the data that is being pulled:</p>
<pre><code>{"total":1,"page":1,"records":1,"rows":[{"id":"1","cell":["1"]}]}<br /><br />No javaScript errors are being reported..<br /><br />Please advise.</code></pre>
]]></description>
        	        	<pubDate>Wed, 28 Oct 2009 12:21:44 +0200</pubDate>
        </item>
</channel>
</rss>