<?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 not collapsing</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/subgrid-not-collapsing</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-not-collapsing/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>EvoBunny on Subgrid not collapsing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/subgrid-not-collapsing#p17368</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/subgrid-not-collapsing#p17368</guid>
        	        	<description><![CDATA[<p>Ok, will quickly test with removing the navgrid line...</p>
]]></description>
        	        	<pubDate>Thu, 20 May 2010 20:32:25 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Subgrid not collapsing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/subgrid-not-collapsing#p17358</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/subgrid-not-collapsing#p17358</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>It seems that there is some error when the grid is created, since we immediatley switch to another icon after the expanding a row.</p>
<p>The only code that can raise the error is navGrid. Try first to comment this and see the result. Also in the picture attached i do not see any navigator buttons.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 20 May 2010 19:52:24 +0300</pubDate>
        </item>
        <item>
        	<title>EvoBunny on Subgrid not collapsing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/subgrid-not-collapsing#p17253</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/subgrid-not-collapsing#p17253</guid>
        	        	<description><![CDATA[<p>This is the html and javascript I&#39;m using to create the grids:&#160;&#160;&#160;</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4061' value='Select Code' data-codeid='sfcode4061' /></p>
<div class='sfcode' id='sfcode4061'>&#60;table id=&#34;countrylist&#34;&#62;&#60;/table&#62;<br />&#160;&#160;&#160; &#60;div id=&#34;countrylistpager&#34;&#62;&#60;/div&#62;<br />&#160;&#160;&#160; &#60;script language=&#34;javascript&#34;&#62;<br />&#160;&#160; &#160;&#160;&#160; &#160;var lastsel;<br />&#160;&#160; &#160;&#160;&#160; &#160;$(&#34;#countrylist&#34;).jqGrid({<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;url: &#39;&#60;?php echo MODX_BASE_URL; ?&#62;../ajax/countrylist.ajax.php&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;datatype: &#39;xml&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;mtype: &#39;POST&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;colNames: [&#39;Country Name&#39;,&#39;Country Code&#39;, &#39;Currency Name&#39;, &#39;Currency Code&#39;, &#39;Conversion Rate&#39;],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;colModel: [<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;countryname&#39;, index:&#39;countryname&#39;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;countrycode&#39;, index:&#39;countrycode&#39;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;currencyname&#39;, index:&#39;currencyname&#39;, sortable: false},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;currencycode&#39;, index:&#39;currencycode&#39;, sortable: false},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;currencyconversionrate&#39;, index:&#39;currencyconversionrate&#39;, sortable: false}<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;pager: &#39;#countrylistpager&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;rowNum: 15,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;rowList: [15, 25, 50],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;sortname: &#39;countryname&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;sortorder: &#39;asc&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;viewrecords: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;hidegrid: false,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;caption: &#39;Country List&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; subGrid: true,<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;var subgrid_table_id, pager_id; <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;subgrid_table_id = subgrid_id+&#34;_t&#34;; <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;pager_id = &#34;p_&#34;+subgrid_table_id; <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$(&#34;#&#34;+subgrid_id).html(&#34;&#60;table id=&#39;&#34;+subgrid_table_id+&#34;&#39; class=&#39;scroll&#39;&#62;&#60;/table&#62;&#60;div id=&#39;&#34;+pager_id+&#34;&#39; class=&#39;scroll&#39;&#62;&#60;/div&#62;&#34;); <br />&#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;$(&#34;#&#34;+subgrid_table_id).jqGrid({ <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;url: &#39;&#60;?php echo MODX_BASE_URL; ?&#62;../ajax/countryregionslist.ajax.php?countrycode=&#39; . $row_id, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;datatype: &#34;xml&#34;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;mtype: &#34;POST&#34;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;colNames: [&#39;Region Name&#39;,&#39;Region Code&#39;], <br />&#160;&#160; &#160;&#160;&#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; &#160;&#160;&#160; &#160;{name:&#34;countryregionname&#34;, index:&#34;countryregionname&#34;}, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#34;countryregioncode&#34;, index:&#34;countryregioncode&#34;}<br />&#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;rowNum:15, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;rowList: [15, 25, 50],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;pager: pager_id,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;sortname: &#39;countryregionname&#39;, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;sortorder: &#34;asc&#34;, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;height: &#39;100%&#39;<br />&#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;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$(&#34;#&#34;+subgrid_table_id).jqGrid(&#39;navGrid&#39;,&#34;#&#34;+pager_id, {edit:false,add:false,del:false});<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;}, subGridRowColapsed: function(subgrid_id, row_id) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;}<br />&#160;&#160; &#160;&#160;&#160; &#160;});<br />&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;$(&#34;#countrylist&#34;).jqGrid(&#39;navGrid&#39;,&#34;#countrylistpager&#34;, {edit:false,add:false,del:false});<br />&#160;&#160;&#160; &#60;/script&#62;</div>
</p>
<p>The main grid works fine, and here is the contents of the php file which returns the results for the subgrid:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2017' value='Select Code' data-codeid='sfcode2017' /></p>
<div class='sfcode' id='sfcode2017'>header(&#34;Content-type: text/xml;charset=utf-8&#34;);<br />&#160;<br />$s = &#34;&#60;?xml version=&#39;1.0&#39; encoding=&#39;utf-8&#39;?&#62;&#34;;<br />$s .= &#34;&#60;rows&#62;&#34;;<br />$s .= &#34;&#60;page&#62;&#34; . $page . &#34;&#60;/page&#62;&#34;;<br />$s .= &#34;&#60;total&#62;&#34; . $total_pages . &#34;&#60;/total&#62;&#34;;<br />$s .= &#34;&#60;records&#62;&#34; . $count . &#34;&#60;/records&#62;&#34;;<br />&#160;<br />foreach($country-&#62;GetRegions() as $countryregion)<br />{<br />&#160;&#160;&#160; $s .= &#34;&#60;row id=&#39;&#34; . $countryregion-&#62;GetCountryRegionCode() . &#34;&#39;&#62;&#34;;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160; $s .= &#34;&#60;cell&#62;&#60;![CDATA[&#34; . $countryregion-&#62;GetCountryRegionName() . &#34;]]&#62;&#60;/cell&#62;&#34;;<br />&#160;&#160;&#160; $s .= &#34;&#60;cell&#62;&#34; . $countryregion-&#62;GetCountryRegionCode() . &#34;&#60;/cell&#62;&#34;;<br />&#160;&#160;&#160; $s .= &#34;&#60;/row&#62;&#34;;<br />}<br />$s .= &#34;&#60;/rows&#62;&#34;; <br />&#160;<br />echo $s;</div>
</p>
<p>The xml the above php file returns is fine with no xml errors, but for some reason I get the following when expanding the subgrid, I&#39;ve encircled the plus which remains a plus, and it keeps adding another subgrid:</p>
<p><a href="http://www.photostand.co.za/images/90ntr7hbjyhcz1yclsj.png"><img src="http://www.photostand.co.za/images/90ntr7hbjyhcz1yclsj.png" width="100"  class="sfimageleft spUserImage" alt="" /><img src="http://www.trirand.com/blog/wp-content/sp-resources/forum-themes/default/images/sp_Mouse.png" class="sfimageleft sfmouseleft" alt="Image Enlarger" /></a></p>
<p>The result set of the of the above regions is empty, there isn&#39;t a problem retrieving the data, it&#39;s just the subgrid doesn&#39;t want to collapse.</p>
<p>Hope this helps.</p>
]]></description>
        	        	<pubDate>Mon, 17 May 2010 23:06:09 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Subgrid not collapsing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/subgrid-not-collapsing#p17246</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/subgrid-not-collapsing#p17246</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Will be great if you send a link to the problem.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 17 May 2010 22:33:56 +0300</pubDate>
        </item>
        <item>
        	<title>EvoBunny on Subgrid not collapsing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/subgrid-not-collapsing#p17212</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/subgrid-not-collapsing#p17212</guid>
        	        	<description><![CDATA[<p>As side note, I&#39;m using jqgrid 3.6.5 and jquery 1.4.2</p>
]]></description>
        	        	<pubDate>Mon, 17 May 2010 11:23:06 +0300</pubDate>
        </item>
        <item>
        	<title>EvoBunny on Subgrid not collapsing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/subgrid-not-collapsing#p17174</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/subgrid-not-collapsing#p17174</guid>
        	        	<description><![CDATA[<p>Hi, I&#39;m new on the forum and started using jqGrid and what a plugin! I just love it, but currently stuck with a scenario with regards to subgrids which is annoying me and I cannot find the answer.</p>
</p>
<p>I have a grid as a subgrid which expands 100% fine, but the plus sign never turns into a minus sign and when I try to collapse the subgrid, it opens another subgrid rather than collapsing/removing the subgrid.</p>
</p>
<p>Anybody have any suggestions as to what the problem might be? Thanks a million in advance.</p>
]]></description>
        	        	<pubDate>Fri, 14 May 2010 17:45:05 +0300</pubDate>
        </item>
</channel>
</rss>