<?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: Updating colModel after search</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/updating-colmodel-after-search</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/updating-colmodel-after-search/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Reg on Updating colModel after search</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/updating-colmodel-after-search#p20786</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/updating-colmodel-after-search#p20786</guid>
        	        	<description><![CDATA[<p>My grid has a custom search area contining a single select control always appearing above the grid; when the search changes, of course, the data is refreshed. but the grid definition is not.</p>
<p>My grid definition contains another select box. The contents of this box depend on what was selected in the search option select.</p>
<p>When I change the search criterion, I want to change the option list for this second select box.</p>
<p>I think this can be done using the .aftersearch Function() event and an ajax call to get the list of options (as described in the examples).</p>
<p>The example shows how to update the select options on the edit form (once, when it is initiated) so it refers to (for example)</p>
<p><input type='button' class='sfcodeselect' name='sfselectit3869' value='Select Code' data-codeid='sfcode3869' /></p>
<div class='sfcode' id='sfcode3869'>
<p>jQuery(&#34;#City&#34;,formid).append(t).</p>
</div>
<p>I don&#39;t want to call this every time the edit form is displayed, but once is not enough because the search criterion on the grid may have changed.</p>
<p>My question: can&#160;I&#160;update the returned values to the column in the&#160;colModel (and if so, how) or do I have to redefine the grid on every search?</p>
<p>Thanks,</p>
<p>Reg</p>
]]></description>
        	        	<pubDate>Fri, 12 Nov 2010 22:47:28 +0200</pubDate>
        </item>
</channel>
</rss>