<?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: meaning of searchoptions.defaultValue</title>
	<link>http://www.trirand.com/blog/?page_id=393/discussion/meaning-of-searchoptions-defaultvalue</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/discussion/meaning-of-searchoptions-defaultvalue/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on meaning of searchoptions.defaultValue</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/meaning-of-searchoptions-defaultvalue#p29732</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/meaning-of-searchoptions-defaultvalue#p29732</guid>
        	        	<description><![CDATA[<p>Hello Oleg,</p>
</p>
<p>Everthing what you write here is true - really not best implementation of this</p>
<p>Not sure what to do. Let me think about this.</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 22 Oct 2013 08:25:28 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on meaning of searchoptions.defaultValue</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/meaning-of-searchoptions-defaultvalue#p29709</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/meaning-of-searchoptions-defaultvalue#p29709</guid>
        	        	<description><![CDATA[<p>Hello Tony,</p>
<p>I tried to use <strong>defaultValue</strong> for columns having select element and I think that the current implementation (the meaning) of it is not the best. So I decide to post my doubts here.</p>
<p><a href="/jqgridwiki/doku.php?id=wiki:search_config#colmodel_options" target="_blank">The documentation</a>&#160;(<em>common</em> searching options) says</p>
<blockquote>
<p>If not empty set a default value in the search input element.</p>
</blockquote>
<p>It says nothing about the meaning of it in case of usage <strong>stype: "select"</strong>. On the other side the current implementation of <strong>defaultValue</strong>&#160;is the following:</p>
<ol>
<li><span style="font-size: 14px;">Searching Dialog <em>ignores</em> <strong>searchoptions.</strong><strong>defaultValue</strong>. So it can&#39;t be used to preselect some select option as default per column which will be used in searching dialog.</span></li>
<li><span style="font-size: 14px;">Searching toolbar fills the default values at the initialization time or on call of <em>clearToolbar</em>, but <em>not apply the filter</em>. In the case the user sees data which don&#39;t corresponds the filter displayed. In case of usage <strong>searchOnEnter: false</strong> option the filter can be applyed if the user types not quick enough. After applying of filter it&#39;s not easy to remove all filters especially if one have grid with many columns. If the user clears unneeded fields it will be refilled one more time after clicking "Reload Grid" button.</span></li>
</ol>
<p>I used to have grids which many columns of select type. The current behavior of usage <strong>searchoptions.</strong><strong>defaultValue&#160;</strong>seems me not the best one. The usage of the option in Serching Dialog is what it seems me interesting. The usage of it in the searching toolbar disturb me opposite.</p>
<p>What do you think about changing the behavior of usage <strong>searchoptions.</strong><strong>defaultValue</strong>. For example the options <strong>useD</strong><strong>efaultValue</strong>&#160;of <em>filterToolbar</em> (managed by <strong>$.jgrid.search</strong> too) and the same option of searching dialog could be a possible solution. One can use special string value <strong>"dialog"</strong>, <strong>"toollbar"</strong> of <strong>useD</strong><strong>efaultValue</strong>&#160;additionally to <strong>true</strong> and <strong>false</strong> to allows selective behavior inside of common <strong>$.jgrid.search.</strong><strong>useD</strong><strong>efaultValue</strong>.</p>
<p>What is your oppinion Tony about the subject?</p>
<p>Best regards<br />Oleg</p>
]]></description>
        	        	<pubDate>Fri, 18 Oct 2013 12:32:26 +0300</pubDate>
        </item>
</channel>
</rss>