<?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: filtertoolbar with custom colModel searchoptions.sopt</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/filtertoolbar-with-custom-colmodel-searchoptions-sopt</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/filtertoolbar-with-custom-colmodel-searchoptions-sopt/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>ChrisXa on filtertoolbar with custom colModel searchoptions.sopt</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/filtertoolbar-with-custom-colmodel-searchoptions-sopt#p25570</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/filtertoolbar-with-custom-colmodel-searchoptions-sopt#p25570</guid>
        	        	<description><![CDATA[<p>I still think it&#39;s a bug. Of course, there should be a separate way to set search options for the filter toolbar. But as long as this is not possible, I expect the filter toolbar (just as I expect any other search input) to use the default search options.</p>
]]></description>
        	        	<pubDate>Tue, 03 Jan 2012 13:06:53 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on filtertoolbar with custom colModel searchoptions.sopt</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/filtertoolbar-with-custom-colmodel-searchoptions-sopt#p25561</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/filtertoolbar-with-custom-colmodel-searchoptions-sopt#p25561</guid>
        	        	<description><![CDATA[<p>It&#39;s important feature and not a bug. The <strong>defaultSearch</strong> option of <strong>filterToolbar</strong> method set default options <em>for all columns</em>. It makes problems. Let us you have colum with select having "equal" and "not equal" option. If you would use <strong>defaultSearch:&#39;cn&#39;</strong>&#160;option the row having either "equal" or "not equal" would be filtered because "not equal" contains "equal". To solve the problem one should include <strong>searchoption</strong> having &#39;eq&#39; on the first place.</p>
<p>It is not the only example where one need specify the operation used for <em>specified</em> column intead of <strong>defaultSearch</strong>&#160;option of&#160;<strong>filterToolbar</strong>&#160;method used as the default searching operation&#160;<em>for all other columns</em>.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Mon, 02 Jan 2012 13:24:52 +0200</pubDate>
        </item>
        <item>
        	<title>ChrisXa on filtertoolbar with custom colModel searchoptions.sopt</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/filtertoolbar-with-custom-colmodel-searchoptions-sopt#p25560</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/filtertoolbar-with-custom-colmodel-searchoptions-sopt#p25560</guid>
        	        	<description><![CDATA[<p>Bug still exists in 4.3.1.</p>
]]></description>
        	        	<pubDate>Mon, 02 Jan 2012 10:36:29 +0200</pubDate>
        </item>
        <item>
        	<title>corux on filtertoolbar with custom colModel searchoptions.sopt</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/filtertoolbar-with-custom-colmodel-searchoptions-sopt#p24804</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/filtertoolbar-with-custom-colmodel-searchoptions-sopt#p24804</guid>
        	        	<description><![CDATA[<p>Hi there,</p>
<p>I encountered an unexpected behaviour when using the jqGrid 4.1.2 filtertoolbar with colModel definitions that contained a custom set of searchoptions (sopt). The filtertoolbar search is always using the first of the defined custom searchoptions, disregarding the defaultSearch value set for the filtertoolbar.</p>
<p>Sample colModel definition:</p>
<pre>colModel: [
   name: &#39;Name&#39;,
   index: &#39;Name&#39;,
   searchoptions: {
      sopt: [&#39;eq&#39;, &#39;ne&#39;, &#39;bw&#39;, &#39;cn&#39;],
   }
]
</pre>
</p>
<p>With this colModel, the search is always using the operator "eq".</p>
</p>
<p>I was expecting following behaviour: if the custom searchoptions contains the defaultSearch value specified by the filtertoolbar, use the default; otherwise use the first of the custom searchoptions.</p>
</p>
<p>Following change fixes the problem (jqGrid 4.1.2, Line&#160;3473):</p>
<pre>so = (this.searchoptions &#38;&#38; this.searchoptions.sopt &#38;&#38; (!p.defaultSearch &#124;&#124; $.inArray(p.defaultSearch, this.searchoptions.sopt) == -1))
      ? this.searchoptions.sopt[0]
      : p.defaultSearch;
</pre>
</p>
<p>regards,</p>
<p>Tobias</p>
]]></description>
        	        	<pubDate>Tue, 04 Oct 2011 12:25:29 +0300</pubDate>
        </item>
</channel>
</rss>