<?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: Filtering data using embedded filter</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/filtering-data-using-embedded-filter</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/filtering-data-using-embedded-filter/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Filtering data using embedded filter</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/filtering-data-using-embedded-filter#p29597</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/filtering-data-using-embedded-filter#p29597</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>Thanks for sharing the solution.</p>
</p>
<p>Kind Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 03 Oct 2013 16:04:39 +0300</pubDate>
        </item>
        <item>
        	<title>ldardini on Filtering data using embedded filter</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/filtering-data-using-embedded-filter#p29595</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/filtering-data-using-embedded-filter#p29595</guid>
        	        	<description><![CDATA[<p>Forget ... I found the solution just few minutes after posting the request for help.</p>
</p>
<p>It is just a matter of moving the postData and search inside the jqGrid definition instead of adding after the creation of the object:</p>
</p>
<blockquote>
<p>...&#160;</p>
<p>search: true,</p>
<p>postData: { &#160;filters: &#39; { "groupOp":"AND","rules":[ { "field":"start","op":"bw","data":"2013-09" } ] } &#39; }</p>
<p>...</p>
</blockquote>
]]></description>
        	        	<pubDate>Thu, 03 Oct 2013 00:53:05 +0300</pubDate>
        </item>
        <item>
        	<title>ldardini on Filtering data using embedded filter</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/filtering-data-using-embedded-filter#p29594</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/filtering-data-using-embedded-filter#p29594</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I have a problem. I have a grid loading data using JSON. I use the extended filter and I&#39;d like to set some filter values and have the grid recovers the filtered data, but still allowing the user to change the filtered values. Using postData grid param I am able to set the filter, but it is not applied. How can I apply it automatically?</p>
</p>
<p>Here is my code:</p>
<blockquote>
<p>jQuery("#list1").jqGrid( {</p>
<p>url:&#39;json.php&#39;,</p>
<p>datatype: "json",</p>
<p>colNames:[ ... ],&#160;</p>
<p>colModel:[ ... ],</p>
<p>mtype: "POST",</p>
<p>...</p>
<p>} );</p>
</p>
<p>jQuery("#list1").jqGrid(&#39;setGridParam&#39;, { postData: { filters:&#39; { "groupOp":"AND","rules":[ { "field":"start","op":"bw","data":"2013-09" } ] } &#39; } , search:true } );</p>
<p>jQuery("#list1").trigger(&#39;reloadGrid&#39;);</p>
</blockquote>
<p>Using this code, the grid still loads all data, but if I open the filter, I see the start "Begin with" 2013-09 value preset and it works if I press the "Find" button, but I want to receive the filtered data immediately, without opening the filter box and pressing Find.</p>
<p>What am I doing wrong?</p>
<p>Leandro</p>
]]></description>
        	        	<pubDate>Thu, 03 Oct 2013 00:30:50 +0300</pubDate>
        </item>
</channel>
</rss>