<?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: Programmatically setting the grid to visible makes grid not load/reload</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/programmatically-setting-the-grid-to-visible-makes-grid-not-loadreload</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/programmatically-setting-the-grid-to-visible-makes-grid-not-loadreload/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Programmatically setting the grid to visible makes grid not load/reload</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/programmatically-setting-the-grid-to-visible-makes-grid-not-loadreload#p15222</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/programmatically-setting-the-grid-to-visible-makes-grid-not-loadreload#p15222</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Setting the state hidden and visible with setGrid param will not work. You should always use setGridState with reloading the grid.</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sat, 27 Feb 2010 21:04:10 +0200</pubDate>
        </item>
        <item>
        	<title>GilAdam on Programmatically setting the grid to visible makes grid not load/reload</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/programmatically-setting-the-grid-to-visible-makes-grid-not-loadreload#p15134</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/programmatically-setting-the-grid-to-visible-makes-grid-not-loadreload#p15134</guid>
        	        	<description><![CDATA[<p>I&#39;m probably not doing this the right way, so please let me know if that&#39;s the case, but..</p>
</p>
<p>What I want to achieve is:</p>
<p><span style="white-space:pre"> </span>1. Grid starts out minimized</p>
<p><span style="white-space:pre"> </span>2. When somebody clicks a button on my page, I want to show the grid maximized and then have it do its loading thing.</p>
<p><span style="white-space:pre"> </span>3. The next time somebody clicks the button, it knows it&#39;s already maximized and then just triggers the reload of the data.</p>
<p><span style="white-space:pre"> </span>4. I want the cool animation for the minimize/maximize.</p>
</p>
<p>The issue I&#39;m experiencing is:</p>
<p><span style="white-space:pre"> </span>1. If I set the grid state to visible programmatically, and then do .trigger("reloadGrid") it doesn&#39;t seem to do anything and the grid doesn&#39;t seem to load.</p>
</p>
<p>What I&#39;m doing is:</p>
<p><span style="white-space:pre"> </span>I&#39;m creating my grid with the hiddengrid property set to true so that my page starts out with the grid minimized. (hiddengrid: true)</p>
<p><span style="white-space:pre"> </span>Then I&#39;ve&#160;got a method that looks like this:</p>
</p>
<p>function performMySearch() {</p>
<p><span style="white-space: pre;"> </span>if ($("#mySearchResultsGrid").jqGrid(&#39;getGridParam&#39;, &#39;gridstate&#39;) == "hidden") {</p>
<p><span style="white-space: pre;"> </span>$("#mySearchResultsGrid").jqGrid(&#39;setGridState&#39;,&#39;visible&#39;);</p>
<p><span style="white-space: pre;"> </span>}</p>
</p>
<p><span style="white-space: pre;"> </span>$("#mySearchResultsGrid").trigger("reloadGrid");</p>
<p>}</p>
</p>
<p>I appreciate any insights anyone might have.</p></p>
]]></description>
        	        	<pubDate>Wed, 24 Feb 2010 22:51:54 +0200</pubDate>
        </item>
</channel>
</rss>