<?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: Reload last grid state</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/reload-last-grid-state</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/reload-last-grid-state/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>AdytmRO on Reload last grid state</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/reload-last-grid-state#p18197</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/reload-last-grid-state#p18197</guid>
        	        	<description><![CDATA[<p>the solution:</p>
</p>
<p><a href="http://www.intothecloud.nl/index.php/2010/04/saving-jqgrid-parameters-in-cookie/" rel="nofollow" target="_blank"><a href="http://www.intothecloud.nl/ind" rel="nofollow">http://www.intothecloud.nl/ind</a>.....in-cookie/</a></p>
]]></description>
        	        	<pubDate>Fri, 25 Jun 2010 13:32:38 +0300</pubDate>
        </item>
        <item>
        	<title>AdytmRO on Reload last grid state</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/reload-last-grid-state#p18194</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/reload-last-grid-state#p18194</guid>
        	        	<description><![CDATA[<p>Update:</p>
<p>I managed to load the grid with the data from the cookie like this:</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; gridState = $.cookie(&#39;gridState&#39;);<br />&#160;&#160; &#160;&#160;&#160; &#160;search = $.evalJSON(gridState)._search;<br />&#160;&#160; &#160;&#160;&#160; &#160;nd = $.evalJSON(gridState).nd;<br />&#160;&#160; &#160;&#160;&#160; &#160;rows = $.evalJSON(gridState).rows;<br />&#160;&#160; &#160;&#160;&#160; &#160;page = $.evalJSON(gridState).page;<br />&#160;&#160; &#160;&#160;&#160; &#160;sidx = $.evalJSON(gridState).sidx;<br />&#160;&#160; &#160;&#160;&#160; &#160;sord = $.evalJSON(gridState).sord;<br />&#160;&#160; &#160;&#160;&#160; &#160;urlBuild = "_search="+search+"&#38;nd="+nd+"&#38;rows="+rows+"&#38;page="+page+"&#38;sidx="+sidx+"&#38;sord="+sord;<br />&#160;&#160; &#160;&#160;&#160; &#160;$("#listSurveys").setGridParam({postData : urlBuild}).trigger(&#39;reloadGrid&#39;);</p>
</p>
<p>But now the problem is that i cannot do anything on the grid.</p>
<p>If i press to go to the next page ... the grid is not changing the postData.</p>
<p>It always loads the postData that i have set.</p>
<p>How can I make the postData change again ?</p>
</p>
<p>Thanks,</p>
<p>AdytmRO&#160; &#160;&#160;&#160;&#160;</p></p>
]]></description>
        	        	<pubDate>Fri, 25 Jun 2010 12:23:19 +0300</pubDate>
        </item>
        <item>
        	<title>AdytmRO on Reload last grid state</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/reload-last-grid-state#p18177</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/reload-last-grid-state#p18177</guid>
        	        	<description><![CDATA[<p>Hy,</p>
</p>
<p>I have this situation:</p>
</p>
<p>I have a grid. I json the postdata of the grid and save it into a cookie.</p>
<p>The postData looks like this:</p>
<p>{"_search":false, "nd": 1277448638394, "rows":10, "page":3, "sidx":"name", "sord":"asc"}</p>
<p>What i want to do is:</p>
<p>When I reload the page, i check if the cookie exists, and if exists I want to set the postData</p>
<p>to the value of the cookie and reload the grid.</p>
</p>
<p>I do it like this:</p>
<p>if cookie is set:</p>
<p>gridState = $.cookie(&#39;gridState&#39;); //i retreive the value from the cookie. if i echo this is the value above</p>
<p>$("#gridId").setGridParam({postData : gridState}).trigger(&#39;reloadGrid&#39;); // i change postData of the grid and reload it.</p>
</p>
<p>This is not working. The grid is not reloading with the new postData.</p>
</p>
<p>Am i doing something wrong?</p>
<p>Do I have to use other method?</p>
</p>
<p>Any help would be appreciated.</p>
</p>
<p>Thanks,</p>
<p>AdytmRO</p></p>
]]></description>
        	        	<pubDate>Fri, 25 Jun 2010 10:08:02 +0300</pubDate>
        </item>
</channel>
</rss>