<?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 and loading grid filters</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/saving-and-loading-grid-filters</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/saving-and-loading-grid-filters/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>donato.gr on Saving and loading grid filters</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/saving-and-loading-grid-filters#p22827</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/saving-and-loading-grid-filters#p22827</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I have the problem of reloading filters too; have you found a solution?</p>
]]></description>
        	        	<pubDate>Mon, 18 Apr 2011 11:25:55 +0300</pubDate>
        </item>
        <item>
        	<title>knutmarius on Saving and loading grid filters</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/saving-and-loading-grid-filters#p22100</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/saving-and-loading-grid-filters#p22100</guid>
        	        	<description><![CDATA[<p>I need to solve the following requirement:</p>
<p>The users of my jqgrid would like to be able to save the current state of the jqgrid filter so that it can be reloaded later. I have looked around on the web and found people with similar requirements. The first thing I tried was to use this to fetch the filter state:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6979' value='Select Code' data-codeid='sfcode6979' /></p>
<div class='sfcode' id='sfcode6979'>var filter = cloneObject($(&#34;#MyGrid&#34;).getGridParam(&#34;postData&#34;));</div>
<p>, and this to reload it:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2124' value='Select Code' data-codeid='sfcode2124' /></p>
<div class='sfcode' id='sfcode2124'>$(&#34;#MyGrid&#34;).setGridParam(null);<br />$(&#34;#MyGrid&#34;).setGridParam(filter);&#160;<br />$(&#34;#MyGrid&#34;).trigger(&#34;reloadGrid&#34;);&#160;&#160; &#160; &#160; &#160; &#160; &#160;</div>
<p>This partly worked: If I set a filter value in the filter toolbar and saved it, it would be active when I reload it, but here is what&#39;s not working:&#160;</p>
<p>1: It does not seem to load the advanced filters (filter dialog box). Only toolbar filter is loaded</p>
<p>2: Row ordering is not loaded</p>
<p>3: It does not populate the toolbar textboxes with the values. So if I load a filter with "ID=32", I would like the text box for the ID column in the filter toolbar to say "32" so you know what filter is currently active.</p>
</p>
<p>So my question is: Am I on the right track with using get/setGridParam for this functionallity? When I &#160;look at the filter object that is persisted, it seems to contain all the info I want to save (also information about the advanced filter dialog and row ordering), but it is just not properly loaded.</p>
</p>
<p>About number problem number 3: Is there any neat way for doing this automatically, or do I have to parse the filter object and "manually" insert the filter values into the text boxes and dropdowns? I am imagining this would be more difficult to do for the advanced filter dialog, where I actually need to create new "filter rows", and not just set a value in a text box</p>
</p>
<p>Will be thankful for all hints and help! I am not very skilled in jqgrid yet, but I am learning <img class="spSmiley" style="margin:0" title="Smile" src="/blog/wp-content/forum-smileys/sf-smile.gif" alt="Smile" /></p>
]]></description>
        	        	<pubDate>Wed, 16 Feb 2011 12:34:16 +0200</pubDate>
        </item>
</channel>
</rss>