<?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: Toolbar search: how to send search operator information to server side</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/toolbar-search-how-to-send-search-operator-information-to-server-side</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/toolbar-search-how-to-send-search-operator-information-to-server-side/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Lonewolf217 on Toolbar search: how to send search operator information to server side</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/toolbar-search-how-to-send-search-operator-information-to-server-side#p30141</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/toolbar-search-how-to-send-search-operator-information-to-server-side#p30141</guid>
        	        	<description><![CDATA[<p>In the request sent to the server, the filter is going to have three parts</p>
</p>
<p>{"groupOp":"AND","rules":[<span style="color: #ff0000;">{"field":"SUMMARY","op":"eq","data":"test"}</span>]}</p>
<p>field = column index we are searching on</p>
<p>op = operator</p>
<p>data = value in the box that we are filtering on</p>
</p>
<p>i ran a couple of tests using a text filter in my filtertoolbar and it seems to be working. whatever the FIRST value in your "sopt" array in colmodel is, it will be sent as the "op" in the filter in the ajax request.</p>
<p>edit: &#160;i just noticed you have "searchOperators=true" for filtertoolbar, so this means that which ever operator is selected by teh user will be sent as the "op" in the filter&#160;</p>
<p>Use debugger tools like Chrome console or firebug to look at the request sent to the server and take a look at what is sent as the filters parameter</p>
]]></description>
        	        	<pubDate>Fri, 24 Jan 2014 20:57:15 +0200</pubDate>
        </item>
        <item>
        	<title>generic.bloodsucker on Toolbar search: how to send search operator information to server side</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/toolbar-search-how-to-send-search-operator-information-to-server-side#p30082</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/toolbar-search-how-to-send-search-operator-information-to-server-side#p30082</guid>
        	        	<description><![CDATA[<p>Using the toolbar search feature provided by jqgrid in my application. The search logic is handled at the server-side. It works perfect. I am trying to integrate the operand based search on toolbar. The problem is it doesn&#39;t send any operand based information to the backend, thus making it impossible for me do proper search.</p>
</p>
<p>I have initialized my JQGRID something like this:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5038' value='Select Code' data-codeid='sfcode5038' /></p>
<div class='sfcode' id='sfcode5038'>
<p>$(&#34;#list&#34;).jqGrid({</p>
<p>url:&#39;rest/usertest/users&#39;,&#160;</p>
<p>datatype: &#34;json&#34;,</p>
<p>mtype: &#34;POST&#34;,</p>
<p>colNames: [&#34;Username&#34;, &#34;Name&#34;, &#34;Grouping&#34;],</p>
<p>colModel: [</p>
<p>{ name: &#34;username&#34; ,sorttype:&#39;string&#39;,searchoptions:{sopt:[&#39;eq&#39;,&#39;bw&#39;,&#39;bn&#39;,&#39;cn&#39;,&#39;nc&#39;,&#39;ew&#39;,&#39;en&#39;]}},</p>
<p>&#160;{ name: &#34;name&#34;, width: 90 ,sorttype:&#39;string&#39;,searchoptions:{sopt:[&#39;eq&#39;,&#39;bw&#39;,&#39;bn&#39;,&#39;cn&#39;,&#39;nc&#39;,&#39;ew&#39;,&#39;en&#39;]}},</p>
<p>{ name: &#34;grouping&#34;, width: 80, sorttype:&#39;string&#39;,searchoptions:{sopt:[&#39;eq&#39;,&#39;bw&#39;,&#39;bn&#39;,&#39;cn&#39;,&#39;nc&#39;,&#39;ew&#39;,&#39;en&#39;]}},</p>
<p>],</p>
<p>pager: &#34;#pager&#34;,</p>
<p>autowidth: true,</p>
<p>multiselect: false,&#160;</p>
<p>viewrecords: true,&#160;	 &#160; &#160;</p>
<p>sortorder: &#34;asc&#34;,	 &#160; &#160;</p>
<p>sortname: &#34;username&#34;,	 &#160; &#160;</p>
<p>rowList: [10, 20, 30],</p>
<p>rowNum: 10,</p>
<p>multiSort: true,</p>
<p>gridview: true,</p>
<p>height: &#39;auto&#39;,&#160;</p>
<p>autowidth: true,</p>
<p>});</p>
<p>jQuery(&#34;#list&#34;).jqGrid(&#39;filterToolbar&#39;,{searchOnEnter : true,searchOperators : true, search:true});</p>
</div>
<p>While searching, the request does not contain any operator based information. Am I missing any configuration option. Please advice.</p></p>
]]></description>
        	        	<pubDate>Wed, 15 Jan 2014 08:36:09 +0200</pubDate>
        </item>
</channel>
</rss>