<?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 search operation strings on per-column basis</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/customizing-search-operation-strings-on-per-column-basis</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/feature-request/customizing-search-operation-strings-on-per-column-basis/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>itsmatt on Customizing search operation strings on per-column basis</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/customizing-search-operation-strings-on-per-column-basis#p23469</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/customizing-search-operation-strings-on-per-column-basis#p23469</guid>
        	        	<description><![CDATA[<p>(From my stackoverflow.com question, <a href="http://stackoverflow.com/questions/6230277/can-i-customize-text-on-jqgrid-search-options-on-per-column-basis" target="_blank">posted here</a>):</p>
</p>
<p>I&#39;m using v4.0 and n my ASP.NET MVC 3 app, I&#39;ve got pages with jqGrids on them. I&#39;ve customized the search operations on a per-column basis like so:&#160;</p>
<pre class="default prettyprint"><p><input type='button' class='sfcodeselect' name='sfselectit8328' value='Select Code' data-codeid='sfcode8328' /></p><div class='sfcode' id='sfcode8328'>colModel: [<br />&#160; &#160;{ name: &#39;IceCreamName&#39;, index: &#39;IceCreamName&#39;, align: &#39;left&#39;,<br />&#160; &#160; &#160;searchoptions: {sopt: [&#39;eq&#39;, &#39;ne&#39;, &#39;cn&#39;]} },<br />.<br />.<br />.<br />&#160; &#160;{ name: &#39;InitialDate&#39;, index: &#39;InitialDate&#39;, align: &#39;left&#39;,<br />&#160; &#160; &#160;searchoptions: {sopt: [&#39;eq&#39;, &#39;ne&#39;, &#39;gt&#39;, &#39;lt&#39;, &#39;ge&#39;, &#39;le&#39;]} },<br />&#160; &#160;{ name: &#39;Volume&#39;, index: &#39;Volume&#39;, align: &#39;left&#39;,<br />&#160; &#160; &#160;searchoptions: {sopt: [&#39;eq&#39;, &#39;ne&#39;, &#39;gt&#39;, &#39;lt&#39;, &#39;ge&#39;, &#39;le&#39;]} }<br /><br />]</div></pre>
<pre class="default prettyprint"><p><input type='button' class='sfcodeselect' name='sfselectit7819' value='Select Code' data-codeid='sfcode7819' /></p><div class='sfcode' id='sfcode7819'><br /></div></pre>
<pre class="default prettyprint"><p><input type='button' class='sfcodeselect' name='sfselectit5636' value='Select Code' data-codeid='sfcode5636' /></p><div class='sfcode' id='sfcode5636'><p>And that&#39;ll give me, for this example, Equal, NotEqual, Contains on the name, and Equal, NotEqual,&#160;</p><p>GreaterThan, LessThan, GreaterThanOrEqual and LessThanOrEqual on the date and volume columns.&#160;</p><p>Wonderful. That customization is great.</p>
<p>What I&#39;d particularly like to do though is customize the strings displayed in the search operation dropdown&#160;</p><p>for those columns. For instance, for the InitalDate column, I&#39;d like the &#39;gt&#39; to display&#160;<strong>"after"</strong>instead of "greater"&#160;</p><p>(makes more sense to the user) and something like&#160;<strong>"on or before"</strong>&#160;instead of "less or equal".</p>
<p>I see that I can modify those globally in the grid.locale-en.js (or whatever locale is correct) but that is at a&#160;</p><p>global level. I&#39;d like the date and volume columns to have strings that are specific to those columns.</p>
<p>Any way to do that? Perhaps I missed something in the documentation on how to accomplish that but it is my understanding, </p><p>according to a response on SO by Oleg that it isn&#39;t built-in.  He provided an example extension to this which I&#39;m looking at now.</p><br /><p>Thanks,</p><p>Matt</p></div></pre>
]]></description>
        	        	<pubDate>Sat, 04 Jun 2011 19:44:10 +0300</pubDate>
        </item>
</channel>
</rss>