<?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 SubGrid with repeatitems:false</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/json-subgrid-with-repeatitemsfalse-1</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/bugs/json-subgrid-with-repeatitemsfalse-1/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on JSON SubGrid with repeatitems:false</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/json-subgrid-with-repeatitemsfalse-1#p28964</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/json-subgrid-with-repeatitemsfalse-1#p28964</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>There is no need to set the id in the subgrid reader.</p>
<p>The JSON string IMHO is correct</p>
<p>Only the mapping&#160; can make some problems.</p>
<p>Please try withourt mapping option and let me know if this work.</p>
<p>I will check this option in the meantime.</p>
</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Fri, 07 Jun 2013 08:22:04 +0300</pubDate>
        </item>
        <item>
        	<title>webdevilopers on JSON SubGrid with repeatitems:false</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/json-subgrid-with-repeatitemsfalse-1#p28944</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/json-subgrid-with-repeatitemsfalse-1#p28944</guid>
        	        	<description><![CDATA[<p>Same problem as Stephan - what is the correct structure for a JSON result using subgrid?</p>
]]></description>
        	        	<pubDate>Wed, 05 Jun 2013 15:06:44 +0300</pubDate>
        </item>
        <item>
        	<title>Stephan on JSON SubGrid with repeatitems:false</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/json-subgrid-with-repeatitemsfalse-1#p11326</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/json-subgrid-with-repeatitemsfalse-1#p11326</guid>
        	        	<description><![CDATA[<p>Sorry to ressurcet this thread, but I have exactly the same problem.</p>
<p>I&#39;m using v.3.5.3. Here are portions of the jqGrid declaration:</p>
</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jsonReader: {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#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;&#160;&#160;&#160;&#160;&#160;&#160; id: &#8220;ID&#8221;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; subgrid: {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#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;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; id: &#8220;ID&#8221;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; },</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; subGridModel: [<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: [&#39;ID&#39;, &#39;RowPrice&#39;, &#39;Status&#39;, &#39;DiscountFlatOff&#39;, &#39;DiscountPercentOff&#39;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; index: [&#39;ID&#39;, &#39;RowPrice&#39;, &#39;Status&#39;, &#39;DiscountFlatOff&#39;, &#39;DiscountPercentOff&#39;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; width: [60, 60, 60, 60, 60],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; mapping: [&#39;ID&#39;, &#39;RowPrice&#39;, &#39;Status&#39;, &#39;DiscountFlatOff&#39;, &#39;DiscountPercentOff&#39;]}]</p>
</p>
<p>The returned json data looks like this (via FireBug):</p>
<pre><code>{"rows":[{"ID":1,"RowPrice":"1","Status":"Current","DiscountFlatOff":"0","DiscountPercentOff":"0"}]}<br /><br /></code>I believe this is valid format.<br /><br />I have done everything as described, but still the subgrid is empty.<br /><br />To summarize the problem: The subgrid does open with the correct columns (id and name) and the browser is requesting and receiving the json data above, but jqGrid is not loading this data into the subgrid.<br /><br />thx<br />Stephan<br /></pre>
]]></description>
        	        	<pubDate>Fri, 30 Oct 2009 11:54:28 +0200</pubDate>
        </item>
        <item>
        	<title>Kien Nguyen on JSON SubGrid with repeatitems:false</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/json-subgrid-with-repeatitemsfalse-1#p9377</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/json-subgrid-with-repeatitemsfalse-1#p9377</guid>
        	        	<description><![CDATA[<p>Thank you, it works. <img class="spSmiley" style="margin:0" title="Smile" src="http://www.trirand.com/blog/wp-content/forum-smileys/sf-smile.gif" alt="Smile" /></p>
]]></description>
        	        	<pubDate>Fri, 04 Sep 2009 14:23:40 +0300</pubDate>
        </item>
        <item>
        	<title>tony on JSON SubGrid with repeatitems:false</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/json-subgrid-with-repeatitemsfalse-1#p9371</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/json-subgrid-with-repeatitemsfalse-1#p9371</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>The problem:</p>
<p>1. There was a missed documentation on how to use this - sorry.</p>
<p>You should add a mapping property like this</p>
<p>subGridModel: [<br />{name:[&#39;id&#39;,&#39;name&#39;], index:[&#39;id&#39;,&#39;name&#39;], <strong>mapping:[&#39;id&#39;,&#39;name&#39;]</strong>, width:[100,100], align:[&#39;left&#39;,&#39;left&#39;], params:[&#39;id&#39;]}<br />]</p>
<p>2. I have corrected this behaviour - i.e if the mapping is not defined a name property is used.</p>
<p>Thanks</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 04 Sep 2009 13:09:19 +0300</pubDate>
        </item>
        <item>
        	<title>Kien Nguyen on JSON SubGrid with repeatitems:false</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/json-subgrid-with-repeatitemsfalse-1#p9367</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/json-subgrid-with-repeatitemsfalse-1#p9367</guid>
        	        	<description><![CDATA[<p>Hello, my jsonReader code is currently as follows, which doesn&#39;t seem to work.&#160;</p>
<p style="padding-left: 30px;">{jsonReader: {repeatitems:false, subgrid: {repeatitems:false} }</p>
</p>
<p>Also, this is the json data being returned by the subgrid expansion call as per FireBug. This seems to follow the default format as noted in the wiki.</p>
<p style="padding-left: 30px;">{"rows":[{"id":5,"name":"HWS"},{"id":7,"name":"CRC"}]}</p>
</p>
<p>The subgrid does open with the correct columns (id and name) and the browser is requesting and receiving the json data above, but jqGrid is not loading this data into the subgrid. Thanks for helping.</p>
]]></description>
        	        	<pubDate>Fri, 04 Sep 2009 12:16:14 +0300</pubDate>
        </item>
        <item>
        	<title>tony on JSON SubGrid with repeatitems:false</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/json-subgrid-with-repeatitemsfalse-1#p9291</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/json-subgrid-with-repeatitemsfalse-1#p9291</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>where you set repeatitems. Look at the docs. Maybe you need:</p>
<p>jsonReader :{</p>
<p>...</p>
<p>subgrid : {repeatitems: false}</p>
<p>}</p>
</p>
<p>I.e this shoul be set in subgrid object.</p>
<p>Best Regards</p>
<p>Tony</p></p>
]]></description>
        	        	<pubDate>Fri, 04 Sep 2009 02:50:33 +0300</pubDate>
        </item>
        <item>
        	<title>Kien Nguyen on JSON SubGrid with repeatitems:false</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/json-subgrid-with-repeatitemsfalse-1#p9234</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/json-subgrid-with-repeatitemsfalse-1#p9234</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Sorry for the cross-post, but I was wondering if this is a bug or unsupported feature.</p>
<p><a href="http://www.trirand.com/blog/?page_id=393/help/json-subgrid-with-repeatitemsfalse/#p9189" rel="nofollow" target="_blank"><a href="http://www.trirand.com/blog/?p" rel="nofollow">http://www.trirand.com/blog/?p</a>.....lse/#p9189</a></p>
<blockquote>
<p>Kien Nguyen said:</p>
<p>Hello,</p>
<p>I was wondering how to get&#160;JSON SubGrid with repeatitems:false working. The demo shows an example with&#160;repeatitems:true and I&#39;ve got this working, however, for&#160;repeatitems:false to work I assume it needs column index names supplied somehow (as opposed to the label names supplied by &#8220;subGridModel: [{name:[]}]&#8221; as per the demo. Can this be done? Thank you.</p>
<p>I have tried the following methods that do not appear to work:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit3118' value='Select Code' data-codeid='sfcode3118' /></p>
<div class='sfcode' id='sfcode3118'>
<p>subGridModel: [<br />{name:&#39;id&#39;,index:&#39;id&#39;,label:&#39;ID&#39;, width:100},<br />{name:&#39;name&#39;,index:&#39;name&#39;,label:&#39;Name&#39;,width:100}<br />]</p>
</p>
<p>subGridModel: [<br />{name:[&#39;id&#39;,&#39;name&#39;], index:[&#39;id&#39;,&#39;name&#39;], width:[100,100], align:[&#39;left&#39;,&#39;left&#39;], params:[&#39;id&#39;]}<br />]</p>
</p>
</div>
</blockquote>
<hr />
]]></description>
        	        	<pubDate>Wed, 02 Sep 2009 14:02:31 +0300</pubDate>
        </item>
</channel>
</rss>