<?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: Customizing available options for searchfield and searchoperator r</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/customizing-available-options-for-searchfield-and-searchoperator-r</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/customizing-available-options-for-searchfield-and-searchoperator-r/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>johnpino1 on Customizing available options for searchfield and searchoperator r</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/customizing-available-options-for-searchfield-and-searchoperator-r#p24170</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/customizing-available-options-for-searchfield-and-searchoperator-r#p24170</guid>
        	        	<description><![CDATA[<p>Ok answered my own question,</p>
</p>
<p>Addthe following to the column definition in the colModel property of the grid:</p>
</p>
<p>search: false</p>
</p>
<p>to disallow searching on a certain column or:</p>
</p>
<p>searchoptions: { sopt: [&#39;eq&#39;, &#39;cn&#39;, &#39;othersearchoptionshere&#39;]}</p>
</p>
<p>to limit the search options on that column.</p>
</p>
<p>&#160;$("#dataTypeOutputsTable").jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; caption: "Outputs",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames: ["Id", "Name", "Attributes", "Memo", "Valid", "Promoted", "Value", "TimeStamp"],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel: [<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{ name: "outputid", index: "outputid", width: 30, searchoptions: { sopt: [&#39;eq&#39;, &#39;cn&#39;]} },<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{ align: "center", name: "attributes", index: "attributes", width: 50, search: false },</p></p>
]]></description>
        	        	<pubDate>Fri, 05 Aug 2011 18:55:54 +0300</pubDate>
        </item>
        <item>
        	<title>johnpino1 on Customizing available options for searchfield and searchoperator r</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/customizing-available-options-for-searchfield-and-searchoperator-r#p24169</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/customizing-available-options-for-searchfield-and-searchoperator-r#p24169</guid>
        	        	<description><![CDATA[<p>I&#39;ve already implemented a jqgrid with an xml data source and the  search button for cases where the operator is "eq" or "cn."&#160; I don&#39;t  really need/want the user to be able to search with other operators so I  don&#39;t want them to show up in the search window drop down.&#160; There are  also certain fields or columns that I don&#39;t want the user to be able to  select from when they click the search button.</p>
</p>
<p>This is  all just the limit what I have to implement in the controller class.&#160;  Are there properties of the columns I should define in the javascript  file that will not allow a search by them? Or are there things I have to  add to or around this line?</p>
</p>
<p>jQuery("#dataTypeOutputsTable").jqGrid(&#39;navGrid&#39;, "#outputsPager", {edit: false, add: false, del: false });</p>
</p>
<p>Thanks for all of your help</p>
<p>
John</p>
]]></description>
        	        	<pubDate>Fri, 05 Aug 2011 17:38:50 +0300</pubDate>
        </item>
</channel>
</rss>