<?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: multiple search dialogs, different searches</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/multiple-search-dialogs-different-searches</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/bugs/multiple-search-dialogs-different-searches/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tempel on multiple search dialogs, different searches</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/multiple-search-dialogs-different-searches#p25294</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/multiple-search-dialogs-different-searches#p25294</guid>
        	        	<description><![CDATA[<p>what I was looking for was:</p>
<p>loadDefaults: false</p>
</p>
<p>Now I can just extract the filterStr.<img class="spSmiley" style="margin:0" title="Cool" src="/blog/wp-content/forum-smileys/sf-cool.gif" alt="Cool" /></p>
]]></description>
        	        	<pubDate>Thu, 01 Dec 2011 14:37:10 +0200</pubDate>
        </item>
        <item>
        	<title>tempel on multiple search dialogs, different searches</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/multiple-search-dialogs-different-searches#p25293</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/multiple-search-dialogs-different-searches#p25293</guid>
        	        	<description><![CDATA[<p>hi,</p>
<p>looking into the plugin source grid.formedit.js I found this:</p>
<p>var fl = $("#"+fid),</p>
<p>filters = fl.jqFilter(&#39;filterData&#39;);</p>
</p>
<p>When I use &#160;&#160;&#160; console.log(JSON.stringify(filters)) I can see the filterStr like this:</p>
<p>{"groupOp":"AND","rules":[{"field":"RemoteAddress","op":"eq","data":""},{"field":"RemoteAddress","op":"eq","data":""}]}</p>
<p>this is what I need to get from my custom search box</p>
</p>
<p>Now I am trying to do the exact same thing for my "custom search box": (prevented the default functions from beeing executed)</p>
<p>and just do; filters = $("#test").jqFilter(&#39;filterData&#39;);</p>
<p>But this gives me the full postData obj plus the SearchFilter.</p>
</p>
<p>I think i need to do something like a clear/reset before using jqFilter("filterData")</p>
<p>any hints?</p>
</p>
<p>What I want do do is: modify this string, store it, then build my postData obj. and finally refresh my grid with this.</p></p>
]]></description>
        	        	<pubDate>Thu, 01 Dec 2011 14:29:54 +0200</pubDate>
        </item>
        <item>
        	<title>tempel on multiple search dialogs, different searches</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/multiple-search-dialogs-different-searches#p25254</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/multiple-search-dialogs-different-searches#p25254</guid>
        	        	<description><![CDATA[<p>Thank you very much for your detailed post, oleg !!!</p>
<p>will try your solution rigth now! -deadline passed away one week ago 😉</p>
]]></description>
        	        	<pubDate>Mon, 28 Nov 2011 12:00:46 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on multiple search dialogs, different searches</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/multiple-search-dialogs-different-searches#p25242</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/multiple-search-dialogs-different-searches#p25242</guid>
        	        	<description><![CDATA[<p>Hello Tempel,</p>
<p>the options <strong>recreateFilter: true</strong>&#160;of the <strong>searchGrid</strong>&#160;seems to me what you need to use.</p>
<p>By the way some time before I posted <a href="/blog/?page_id=393/feature-request/change-default-settings-for-recreatefilter-and-recreateform-to-true/" target="_blank">here</a>&#160;the suggestion to change the default settings of <strong>recreateForm </strong>and <strong>recreateFilter</strong>&#160;from currently default value <strong>false</strong> to <strong>true</strong>. I still have the same opinion. At the beginning of my usage of jqGrid I spent at least two days in debugging some strange problems which origin was <strong>recreateForm</strong>&#160;setting. I read regelmassig problems like yours. I still hope that Tony will do the changes.&#160;Till the time I can recommend you to change jqGrid defaults by changing of <strong>$.jgrid.search</strong>. My personal default settings are</p>
<p><input type='button' class='sfcodeselect' name='sfselectit3732' value='Select Code' data-codeid='sfcode3732' /></p>
<div class='sfcode' id='sfcode3732'>$.extend($.jgrid.search, {<br />&#160; &#160; multipleSearch: true,<br />&#160; &#160; multipleGroup: true,<br />&#160; &#160; recreateFilter: true,<br />&#160; &#160; closeOnEscape: true,<br />&#160; &#160; closeAfterSearch: true,<br />&#160; &#160; overlay: 0<br />});&#160;</div>
<p>You can set the settings which are the best to your project in one JavaScript file which you will includes on all your HTML pages directly after the <strong>jquery.jqGrid.min.js</strong>.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Fri, 25 Nov 2011 18:56:50 +0200</pubDate>
        </item>
        <item>
        	<title>tempel on multiple search dialogs, different searches</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/multiple-search-dialogs-different-searches#p25239</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/multiple-search-dialogs-different-searches#p25239</guid>
        	        	<description><![CDATA[<p>hi, Iam having trouble with some custom search dialogs</p>
<p>my Pager is setup like this and works fine;</p>
<p>jQuery("#list5").jqGrid(&#39;navGrid&#39;, &#39;#pager5&#39;,{view:false,edit:false,add:false,del:false,edit:false},{},{},{},{<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; closeOnEscape: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; closeAfterSearch: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; multipleSearch:true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; multipleGroup:true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; showQuery: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; caption:"Search..."},{} );</p>
</p>
<p>We want our users to be able to store their search requests.</p>
<p>Therefore I want them to select the search options from the dialog -as always, but then store the postData somewhere on the server.</p>
<p>later on I need the postData (the search request) to be editable (preferably via the standard- search dialog )</p>
<p>So I made a click button like this:</p>
<p>$("#search_grid").click(function(){&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; jQuery("#list5").jqGrid(&#39;searchGrid&#39;,{<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; closeOnEscape: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; closeAfterSearch: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; multipleSearch:true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; multipleGroup:true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; showQuery: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; caption:"AN OTHER CAPTION"<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; });&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; });</p>
</p>
<p>Problem with that is: The "search" that is triggerd first sets the caption and the options , and the following actions do not set the new Caption/options. -&#62; i cannot get around this atm.</p>
<p>Maybe I got something wrong here, and someone can point me towards a solution?!</p>
<p>If you have any ideas, how i can make the stored "postData/searchoptions"&#160; load into the dialog again&#160; -at a later time. Please give me a hint 😉</p>
</p>
<p>Thanks a lot !<br />tempel</p>
]]></description>
        	        	<pubDate>Fri, 25 Nov 2011 16:40:02 +0200</pubDate>
        </item>
</channel>
</rss>