<?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: Users creating and saving filters</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/users-creating-and-saving-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/users-creating-and-saving-filters/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Users creating and saving filters</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/users-creating-and-saving-filters#p30532</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/users-creating-and-saving-filters#p30532</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>Currently there is no such button on the search form.</p>
<p>As for the custom form you can make a button in the page and make it so that when the user click on it to save the curren filter.</p>
<p>You my ask for the name to be saved and then save</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2337' value='Select Code' data-codeid='sfcode2337' /></p>
<div class='sfcode' id='sfcode2337'>
<p>var filters =[];</p>
<p>$("#mybutton").click(function(){</p>
<p>// ask the user to enter a short name let say</p>
<p>var currentname = &#39;test1&#39;;</p>
<p>// get the filter</p>
<p>var currentfilter = $("#grid").jqGrid(&#39;getGridParam&#39;,&#39;postData&#39;).filters;</p>
<p>// push it into array</p>
<p>filters[currentname] =&#160; currentfilter ;</p>
<p>// you vcan save it to server using ajax.</p>
<p>alert(&#39;Current filter is saved!&#39;);</p>
<p>});</p>
</div>
<p>The way to run the saved filter is to read this array and when the user select the desired filter to run the code from my previous mail.</p>
</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Tue, 22 Apr 2014 11:50:51 +0300</pubDate>
        </item>
        <item>
        	<title>rbruhn on Users creating and saving filters</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/users-creating-and-saving-filters#p30528</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/users-creating-and-saving-filters#p30528</guid>
        	        	<description><![CDATA[<p>Thank you for the information.</p>
<p>Instead of trying to save each search a user performs, which they may not wish to keep, is there a way to add a button to the search form so they can click, name, and save the search?</p>
<p>Or, even a custom form on the html page that captures the filter information and allows them to save. I guess that is how I might do it with the information you gave me.</p>
<p>I know there would need to be some backend process for saving (php, mysql, etc) which can be built.&#160;</p>
]]></description>
        	        	<pubDate>Mon, 21 Apr 2014 20:04:02 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Users creating and saving filters</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/users-creating-and-saving-filters#p30519</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/users-creating-and-saving-filters#p30519</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>This is possible and requiere a little programing effort to make this happen.</p>
<p>The search rules are a parameter in the grid postData and this parameter is named filters.</p>
<p>Every time the user perform a serach you can save the filter using</p>
</p>
<p>var currentfilter = $("#grid").jqGrid(&#39;getGridParam&#39;,&#39;postData&#39;).filters;</p>
</p>
<p>this filter can be saved depending on your needs and later you can invokethe serech this way</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit3335' value='Select Code' data-codeid='sfcode3335' /></p>
<div class='sfcode' id='sfcode3335'>
<p>$(&#34;#grid&#34;).jqGrid(&#39;setGridParam&#39;,{postData: { filters : currentfilter }, search:true });</p>
<p>$(&#34;#grid&#34;).trigger(&#34;reloadGrid&#34;);</p>
</div>
<p>Hope this help</p>
</p>
<p>Regards</p></p>
]]></description>
        	        	<pubDate>Sat, 19 Apr 2014 12:05:32 +0300</pubDate>
        </item>
        <item>
        	<title>jan-kratochvil on Users creating and saving filters</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/users-creating-and-saving-filters#p30511</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/users-creating-and-saving-filters#p30511</guid>
        	        	<description><![CDATA[<p>This seems like a good feature...</p>
]]></description>
        	        	<pubDate>Fri, 18 Apr 2014 11:52:02 +0300</pubDate>
        </item>
        <item>
        	<title>rbruhn on Users creating and saving filters</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/users-creating-and-saving-filters#p30510</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/users-creating-and-saving-filters#p30510</guid>
        	        	<description><![CDATA[<p>I&#39;ve been looking around for a good jquery table and came across jqGrid. It seems like a very useful tool. One thing I was hoping to find is the ability for users to create a filter, name it, save it, and then access it later for other datasets.&#160;</p>
<p>I&#39;ve seen the Search Templates, so understand the filters can be created, named, and saved in some manner. However, it would be better if the user could use various search features, find what they like, then save and name the search for later.</p>
<p>Would it be hard to do something like that? Is there some way already?</p>
]]></description>
        	        	<pubDate>Thu, 17 Apr 2014 20:41:00 +0300</pubDate>
        </item>
</channel>
</rss>