<?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: How to expand or collapse grid??</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-expand-or-collapse-grid</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/how-to-expand-or-collapse-grid/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on How to expand or collapse grid??</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-expand-or-collapse-grid#p9302</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-expand-or-collapse-grid#p9302</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>This is the most recommended and clear use.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 04 Sep 2009 03:35:10 +0300</pubDate>
        </item>
        <item>
        	<title>yummy on How to expand or collapse grid??</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-expand-or-collapse-grid#p9158</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-expand-or-collapse-grid#p9158</guid>
        	        	<description><![CDATA[<p>Hi Tony :&#160;</p>
</p>
<p>Thanks your great help.</p>
<p>I use the following method to do it.</p>
</p>
<p>$(".HeaderButton", $(&#39;#mygrid&#39;)[0].grid.cDiv).trigger("click");</p>
]]></description>
        	        	<pubDate>Mon, 31 Aug 2009 22:40:48 +0300</pubDate>
        </item>
        <item>
        	<title>tony on How to expand or collapse grid??</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-expand-or-collapse-grid#p9128</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-expand-or-collapse-grid#p9128</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>It is again the common problem - which is the first the egg or the chicken?</p>
<p>- Also in order to check if you have records - the grid is already construct (expanded), since of the ajax call (we do not know initially how many records we have).</p>
<p>- If you make the grid initially hidden it is quite possible, that you have records in the view</p>
<p>and so on.</p>
<p>I think that there are two possible solutions:</p>
<p>1. Before to open the grid check if the current query has records. (The most clear way)</p>
<p>If this is the case construct the grid with hiddengrid:false otherwise hiddengrid:true</p>
<p>2. Use loadComplete event to check if you have records and then either use setGridState (currently this method is only in GitHub)</p>
<p>or trigger the click  to hide/show  grid button.</p>
</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 31 Aug 2009 09:36:44 +0300</pubDate>
        </item>
        <item>
        	<title>yummy on How to expand or collapse grid??</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-expand-or-collapse-grid#p9073</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-expand-or-collapse-grid#p9073</guid>
        	        	<description><![CDATA[<p>Hi :</p>
<p>I want to expand or collapse grid in javascript.</p>
<p>I don&#39;t want to use the "Initial Hidden Grid" property to do this.</p>
<p>Because i will expand or collapse grid depends on the records is zero or not.</p>
<p>If the records is 0 =&#62; collapse grid, else expand it.</p>
<p>But i can&#39;t find a method to do it.</p>
<p>Any body can help me?</p>
<p>Thanks.</p>
]]></description>
        	        	<pubDate>Sun, 30 Aug 2009 22:46:52 +0300</pubDate>
        </item>
</channel>
</rss>