<?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: Saving grid status</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/saving-grid-status</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/feature-request/saving-grid-status/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>AlexWayhill on Saving grid status</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/saving-grid-status#p28453</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/saving-grid-status#p28453</guid>
        	        	<description><![CDATA[<p>Although this post is really old, let&#39;s play grave digger and add some information for other visitors with similar questions:</p>
<p>the easiest way to save such information is to store the info on the backend site (PHP, ASP, ...) using cookies and have the grid check for these values when re-initialising it.&#160;</p>
<p>BACKEND:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit521' value='Select Code' data-codeid='sfcode521' /></p>
<div class='sfcode' id='sfcode521'>&#60;?php&#160;<br />// ... creating the $perPage &#38; additional variables has been done in advance<br />setcookie(&#39;index-per-page&#39;, $perPage, time()+356*86400);<br />setcookie(&#39;index-page&#39;, $page, time()+356*86400); &#160; &#160; &#160;<br />setcookie(&#39;sort-order&#39;, $sortOrder, time()+356*86400); &#160; &#160; &#160;<br />setcookie(&#39;sort-field&#39;, $sortField, time()+356*86400);<br />?&#62;</div>
</p>
<p>FRONTEND:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8863' value='Select Code' data-codeid='sfcode8863' /></p>
<div class='sfcode' id='sfcode8863'>$(&#39;#grid-table&#39;).jqGrid({<br />&#160; &#160; ...<br />&#160; &#160; page: ($.cookie(&#39;index-page&#39;) ? $.cookie(&#39;index-page&#39;) : 1),&#160; &#160; <br />&#160; &#160; rowList:[10,20,30,40],&#160; &#160; <br />&#160; &#160; rowNum:($.cookie(&#39;index-per-page&#39;) ? $.cookie(&#39;index-per-page&#39;) : 20),&#160;<br />&#160; &#160; ...<br />});&#160;</div>
<p>On the frontend side, I use the cookie-plugin [1] to have a jquerified way to access cookies.&#160;</p>
<p>Hope this helps a future visitor (more a Prof. Farnsworth than Fry)!</p>
</p>
<p>Cheers, Sascha</p>
</p>
<p>[1] <a href="https://github.com/carhartl/jquery-cookie" rel="nofollow" target="_blank">https://github.com/carhartl/jquery-cookie</a></p>
]]></description>
        	        	<pubDate>Thu, 14 Mar 2013 10:00:43 +0200</pubDate>
        </item>
        <item>
        	<title>nielsilmer on Saving grid status</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/saving-grid-status#p22261</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/saving-grid-status#p22261</guid>
        	        	<description><![CDATA[<p>Is there already a way to save the grid status after returnen to the grid page?</p>
<p>I would like to see that the grid saves his filters/searches and current page. Maybe with the help of a coockie.</p>
]]></description>
        	        	<pubDate>Tue, 01 Mar 2011 15:17:18 +0200</pubDate>
        </item>
</channel>
</rss>