<?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: Default value for select lists</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/default-value-for-select-lists</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/default-value-for-select-lists/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>knutmarius on Default value for select lists</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/default-value-for-select-lists#p22262</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/default-value-for-select-lists#p22262</guid>
        	        	<description><![CDATA[<p>I have a grid with search toolbar. One of my columns has a dropdown box as search field type and. The column is defined like this:</p>
<p>{ "searchoptions": { sopt: [&#39;eq&#39;, &#39;ne&#39;], defaultValue: "OPEN", "dataUrl": _baseUrl + "Ticket/GetStatusList", "buildSelect": buildDropDown}, "index": "Status", "name": "Status", "stype": "select" },</p>
</p>
<p>My problem is that the default value is not used to filter the map at startup. It is correctly selected in the dropdown, but the filter is not applied. I need to manually change the value of the dropdown to make it affect the filter (postData).</p>
</p>
<p>What I think is strange is that I have other columns that uses defaultValue, and they work fine (values are correctly applied to the filter when it goes to the server to fetch data). I tried changing the type of the dropdownbox back to a normal input field, and then it worked for that column as well.</p>
</p>
<p>It seems to me there is a problem with setting default search values for dropdown boxes. Does anyone know why, and is there a simple solution to my problem?</p>
</p>
<p>Thanks in advance.</p>
]]></description>
        	        	<pubDate>Tue, 01 Mar 2011 18:06:14 +0200</pubDate>
        </item>
</channel>
</rss>