<?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: JSON format for subgrid</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/json-format-for-subgrid</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/json-format-for-subgrid/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>danyw on JSON format for subgrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/json-format-for-subgrid#p22105</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/json-format-for-subgrid#p22105</guid>
        	        	<description><![CDATA[<p>Since I can&#39;t delete my own posting I may as well answer it...</p>
<p>I have fixed the issue - it turns out I only had one cell in the row object. It&#39;s meant to be an array of cells, even if there&#39;s only one cell in that array.</p>
]]></description>
        	        	<pubDate>Wed, 16 Feb 2011 21:41:05 +0200</pubDate>
        </item>
        <item>
        	<title>danyw on JSON format for subgrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/json-format-for-subgrid#p22098</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/json-format-for-subgrid#p22098</guid>
        	        	<description><![CDATA[<p>Hi everyone,</p>
<p>I am trying to set up a subgrid and for now I am just trying with one column. Here&#39;s the output of my controller action:</p>
<p><!--StartFragment--></p>
<pre><p><input type='button' class='sfcodeselect' name='sfselectit5880' value='Select Code' data-codeid='sfcode5880' /></p><div class='sfcode' id='sfcode5880'><div class=&#34;&#34;sfcode&#34;&#34;>{&#34;row&#34;:{&#34;cell&#34;:[&#34;Test Breeder 2&#34;]}}</div></div></pre>
<pre><span style="font-family: monospace;">and here&#39;s the javascript code:</span></pre>
<pre><span style="font-family: monospace;"><p><input type='button' class='sfcodeselect' name='sfselectit1047' value='Select Code' data-codeid='sfcode1047' /></p><div class='sfcode' id='sfcode1047'><p class=&#34;&#34;&#34;p1&#34;&#34;&#34;>&#160;&#160; &#160;$(&#34;#grid&#34;).jqGrid({</p><p class=&#34;&#34;&#34;p2&#34;&#34;&#34;>&#160; &#160; &#160; &#160; url: &#34;/Entry/EntryListingByBreed/&#34;,</p><p class=&#34;&#34;&#34;p1&#34;&#34;&#34;>&#160; &#160; &#160; &#160; datatype: &#34;json&#34;,</p><p class=&#34;&#34;&#34;p1&#34;&#34;&#34;>&#160; &#160; &#160; &#160; mtype: &#34;POST&#34;,</p><p class=&#34;&#34;&#34;p1&#34;&#34;&#34;>&#160; &#160; &#160; &#160; postData: {...},</p><p class=&#34;&#34;&#34;p2&#34;&#34;&#34;>&#160; &#160; &#160; &#160; colNames: [...],</p><p class=&#34;&#34;&#34;p1&#34;&#34;&#34;>&#160; &#160; &#160; &#160; colModel: [</p><p class=&#34;&#34;&#34;p1&#34;&#34;&#34;>            ...some columns</p><p class=&#34;&#34;&#34;p1&#34;&#34;&#34;>&#160; &#160; &#160; &#160; ],</p><p class=&#34;&#34;&#34;p1&#34;&#34;&#34;>&#160; &#160; &#160; &#160; pager: jQuery(&#34;#pager&#34;),</p><p class=&#34;&#34;&#34;p1&#34;&#34;&#34;>&#160; &#160; &#160; &#160; rowNum: 20,</p><p class=&#34;&#34;&#34;p1&#34;&#34;&#34;>&#160; &#160; &#160; &#160; rowList: [10, 20, 40],</p><p class=&#34;&#34;&#34;p1&#34;&#34;&#34;>&#160; &#160; &#160; &#160; altRows: true,</p><p class=&#34;&#34;&#34;p1&#34;&#34;&#34;>&#160; &#160; &#160; &#160; altclass: &#34;gridAltRow&#34;,</p><p class=&#34;&#34;&#34;p1&#34;&#34;&#34;>&#160; &#160; &#160; &#160; height: &#34;100%&#34;,</p><p class=&#34;&#34;&#34;p1&#34;&#34;&#34;>&#160; &#160; &#160; &#160; viewrecords: true,</p><p class=&#34;&#34;&#34;p1&#34;&#34;&#34;>&#160; &#160; &#160; &#160; caption: &#34;Entries for &#34; + breedName,</p><p class=&#34;&#34;&#34;p1&#34;&#34;&#34;>&#160; &#160; &#160; &#160; subGrid: true,</p><p class=&#34;&#34;&#34;p2&#34;&#34;&#34;>&#160; &#160; &#160; &#160; subGridUrl: &#34;/Entry/GetEntrySummary/&#34;,</p><p class=&#34;&#34;&#34;p1&#34;&#34;&#34;>&#160; &#160; &#160; &#160; subGridModel: [</p><p class=&#34;&#34;&#34;p1&#34;&#34;&#34;>&#160; &#160; &#160; &#160; {</p><p class=&#34;&#34;&#34;p1&#34;&#34;&#34;>&#160; &#160; &#160; &#160; &#160; &#160; name: [&#34;Breeder&#34;],</p><p class=&#34;&#34;&#34;p1&#34;&#34;&#34;>&#160; &#160; &#160; &#160; &#160; &#160; width: [&#34;500&#34;],</p><p class=&#34;&#34;&#34;p1&#34;&#34;&#34;>&#160; &#160; &#160; &#160; &#160; &#160; align: [&#34;left&#34;]</p><p class=&#34;&#34;&#34;p1&#34;&#34;&#34;>&#160; &#160; &#160; &#160; }]</p><p class=&#34;&#34;&#34;p1&#34;&#34;&#34;>&#160; &#160; });</p></div><br /><span style="font-family: Tahoma, Helvetica, Arial, Verdana, sans-serif;">Currently the subgrid is only showing the column header but no data. Any help would be greatly appreciated.</span><br /><p class="p1">Thanks,</p><p class="p1">Dany.</p></span></pre>
<p><!--EndFragment--></p>
]]></description>
        	        	<pubDate>Tue, 15 Feb 2011 23:18:01 +0200</pubDate>
        </item>
</channel>
</rss>