<?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: Expand / collapse row using a method</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/expand-collapse-row-using-a-method</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/expand-collapse-row-using-a-method/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Expand / collapse row using a method</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/expand-collapse-row-using-a-method#p4798</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/expand-collapse-row-using-a-method#p4798</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Can you get the all available row id&#39;s when the grid is loaded? I think yes.</p>
<p>Can you loop these values and for every value to call</p>
<p>$("#mygrid").expandSubgridRow(rowid[i])? I think yes</p>
<p>Hope this help</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 20 Feb 2009 09:39:13 +0200</pubDate>
        </item>
        <item>
        	<title>maggie on Expand / collapse row using a method</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/expand-collapse-row-using-a-method#p4761</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/expand-collapse-row-using-a-method#p4761</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>What is the syntax to call the method expandSubGridRow in version 3.4.1 to do expand all subgrids automatically when the main grid loads?</p>
<p>I use this but it is not working.</p>
<p>&#60;script type="text/javascript"&#62;<br />&#160;jQuery(document).ready(function(){ <br />&#160;&#160;&#160; jQuery("#list").jqGrid({<br />&#160;&#160; <a href="/blog/&#39;example.php&#39;" target="_blank">url:&#39;example.php&#39;</a>, <br />&#160;&#160;datatype: &#39;xml&#39;, <br />&#160;&#160;colNames:<br />&#160;&#160;[&#39;Inv No&#39;, &#39;Date&#39;, &#39;Amount&#39;, &#39;Tax&#39;, &#39;Total&#39;, &#39;Notes&#39;], <br />&#160;&#160;colModel :[ {name:&#39;invid&#39;, index: &#39;invid&#39;, width: 55}, <br />&#160;&#160;{name:&#39;invdate&#39;, index: &#39;invdate&#39;, width: 90}, <br />&#160;&#160;{name:&#39;amount&#39;, index: &#39;amount&#39;, width: 80, align: &#39;right&#39;}, <br />&#160;&#160;{name:&#39;tax&#39;, index: &#39;tax&#39;, width: 80, align: &#39;right&#39;}, <br />&#160;&#160;{name:&#39;total&#39;, index: &#39;total&#39;, width: 80,align: &#39;right&#39;}, <br />&#160;&#160;{name:&#39;note&#39;, index: &#39;note&#39;, width: 150, sortable: false} ], <br />&#160;&#160;pager: jQuery(&#39;#pager&#39;), <br />&#160;&#160;rowNum:10, rowList:[10,20,30], <br />&#160;&#160;sortname: &#39;id&#39;, <br />&#160;&#160;sortorder: "desc", <br />&#160;&#160;viewrecords: true, <br />&#160;&#160;imgpath: &#39;themes/basic/images&#39;, <br />&#160;&#160;caption: &#8220;My first grid, <br />&#160;&#160;subGrid: true, <br />&#160;&#160;subGridUrl : "subgrid.php", <br />&#160;&#160;subGridModel [ <br />&#160;&#160;&#160;{ name: [&#39;No&#39;, &#39;Item&#39;, &#39;Qty&#39;, &#39;Unit&#39;, &#39;Line Total&#39;], <br />&#160;&#160;&#160;width : [55, 200, 80, 80, 80], <br />&#160;&#160;&#160;params: [&#39;invdate&#39;] } ] <br />&#160;&#160; <span style="color: #993300;"><strong>}).expandSubGridRow(rowid); </strong></span></p>
<p>&#160;});</p>
<p>&#160;&#60;/script&#62;</p>
</p>
<p>Can you please give me an example?</p>
</p>
<p>Thanks! Maggie</p>
]]></description>
        	        	<pubDate>Thu, 19 Feb 2009 17:15:10 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Expand / collapse row using a method</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/expand-collapse-row-using-a-method#p3932</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/expand-collapse-row-using-a-method#p3932</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Also you can use a more human readable methods in the new 3.4 beta. Check what is new here.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 12 Jan 2009 09:59:17 +0200</pubDate>
        </item>
        <item>
        	<title>RedrikShuhart on Expand / collapse row using a method</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/expand-collapse-row-using-a-method#p3922</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/expand-collapse-row-using-a-method#p3922</guid>
        	        	<description><![CDATA[<p>Thank you!</p>
<p>It worked!!!</p>
]]></description>
        	        	<pubDate>Sun, 11 Jan 2009 08:05:17 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Expand / collapse row using a method</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/expand-collapse-row-using-a-method#p3745</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/expand-collapse-row-using-a-method#p3745</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>One possible solution (use the last version of jqGrid) to collapse all opened subgrids is:</p>
<p>var minuses = table.find(&#8221;img[src$=minus.gif]&#8220;,"#mygridid").each(function() {</p>
<p>$(this).parents(&#8221;td&#8221;).eq(0).click();</p>
<p>});</p>
<p>The same to expand all.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 29 Dec 2008 03:29:13 +0200</pubDate>
        </item>
        <item>
        	<title>RedrikShuhart on Expand / collapse row using a method</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/expand-collapse-row-using-a-method#p3704</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/expand-collapse-row-using-a-method#p3704</guid>
        	        	<description><![CDATA[<p>Hi.</p>
<p>First, thank you, Tony, a lot for this wonderful plugin that saved tons of time to all those people using it.</p>
<p>I was searching for a way to expand/collapse a row, when subgrid set to true, but not by clicking on the plus icon but using javascript. Is there a method or a more complicated way to trigger exapnding/collapsing of a row to a button outside of the grid? My final destination is to create a button "Expand All".</p>
<p>If there is already such an option please point me in the direction.</p>
<p>Thanks in advance.</p>
]]></description>
        	        	<pubDate>Wed, 24 Dec 2008 10:31:52 +0200</pubDate>
        </item>
</channel>
</rss>