<?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: Dynamically Populate Select Dropdown</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/dynamically-populate-select-dropdown</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/dynamically-populate-select-dropdown/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>illiquent on Dynamically Populate Select Dropdown</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dynamically-populate-select-dropdown/page-3#p25833</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dynamically-populate-select-dropdown/page-3#p25833</guid>
        	        	<description><![CDATA[<p>thanks tony.</p>
<p>that worked great</p>
<blockquote>
</blockquote>
]]></description>
        	        	<pubDate>Sun, 29 Jan 2012 03:12:39 +0200</pubDate>
        </item>
        <item>
        	<title>cvneo on Dynamically Populate Select Dropdown</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dynamically-populate-select-dropdown/page-3#p23916</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dynamically-populate-select-dropdown/page-3#p23916</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p> I have not found an example to use the events, DATAIN, DataEvent on <a href="http://trirand.com/blog/jqgrid/jqgrid.html" rel="nofollow" target="_blank"><a href="http://trirand.com/blog/jqgrid" rel="nofollow">http://trirand.com/blog/jqgrid</a>.....qgrid.html</a></p>
<p> It&#39;s a shame because I think a lot of people are losing hope to make things further with this plugin, especially since French is look for good keywords to find what I want to do is not easy.</p>
<p> The I simply trying to recover the value of a field of a line to update a drop down list linked together:</p>
<p> Country and state</p>
<p> When editing a line I want to spent the id of the country to see the list of states in the country concerned in the other list:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2028' value='Select Code' data-codeid='sfcode2028' /></p>
<div class='sfcode' id='sfcode2028'>
<p>... &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</p>
<p>{name:&#39;IDsysPays&#39;,index:&#39;IDsysPays&#39;, editable:true,edittype:&#34;select&#34;,editoptions: { dataUrl: &#34;../jqGrid_options?option=LstOptionPays&#34;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; dataEvents: [<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; {&#160; type: &#39;change&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;fn: function(e) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $.get(&#34;../jqGrid_options&#34;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; {option:&#34;LstOptionCantons&#34;,IDsysPays:this.value},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;function(data){<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$(&#39;#IDisoState&#39;).replaceWith(data);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;}&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;}<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; }<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; ] }},</p>
<p>{name:&#39;IDisoState&#39;,index:&#39;IDisoState&#39;, editable:true,edittype:&#34;select&#34;,editoptions: { dataUrl: &#34;../jqGrid_options?option=LstOptionCantons&#38;IDsysPays=<strong>&#34;+$(&#39;#IDsysPays&#39;).value()</strong>}}, <br />...</p>
</div>
<p>Thank you for your help always very valuable.</p>
]]></description>
        	        	<pubDate>Fri, 08 Jul 2011 13:22:17 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on Dynamically Populate Select Dropdown</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dynamically-populate-select-dropdown/page-3#p21698</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dynamically-populate-select-dropdown/page-3#p21698</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>You can see that &#60;select&#62; element has id="dependence". So you can use</p>
<p>var sel = $("select#dependence");</p>
<p>or just</p>
<p>var sel = $("#dependence");</p>
<p>to get the &#60;select&#62; element. The element with id="tr_dependence" is &#60;tr&#62; and not &#60;select&#62; element. So from the element the "way" to &#60;select&#62; will be longer:</p>
<p>var sel =&#160;$("tr#tr_dependence &#62; td.DataTD &#62; select.FormElement")</p>
<p>Another problem which you can has: you have chosen&#160;the wrong place to make modification of the select element. Verify that sel.length === 1.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Sat, 15 Jan 2011 23:43:26 +0200</pubDate>
        </item>
        <item>
        	<title>bogoa666 on Dynamically Populate Select Dropdown</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dynamically-populate-select-dropdown/page-2#p21696</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dynamically-populate-select-dropdown/page-2#p21696</guid>
        	        	<description><![CDATA[<p>$("#dependences") works fine xDDDDDD oh my god, one hour lost with this !!</p>
</p>
<p>thanks to show me the path 😉</p>
]]></description>
        	        	<pubDate>Sat, 15 Jan 2011 23:32:19 +0200</pubDate>
        </item>
        <item>
        	<title>bogoa666 on Dynamically Populate Select Dropdown</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dynamically-populate-select-dropdown/page-2#p21695</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dynamically-populate-select-dropdown/page-2#p21695</guid>
        	        	<description><![CDATA[<blockquote>
<p>OlegK said:</p>
<p>Hello!</p>
<p>You can use Developer Tools of Internet Explorer or Google Chrome or Firebug in Firefox to examine the current modified HTML code any time. If you use Toolbar Filtering, then you will see that ids of all items from the toolbar have prefix "gs_". Probably you try use it in form editing of inline editing.</p>
<p>By the way Tenerife is my&#160;favorite&#160;island from the Canary&#160;Islands (I visited almost all from there).</p>
<p>Best wishes from Germany<br />Oleg&#160;</p>
</blockquote>
<hr />
<p>Yes is a great place 😉</p>
</p>
<p>Ok, firebug shows me that:<br />&#60;tr rowpos="5" class="FormData" id="<strong>tr_dependence</strong>"&#62;</p>
<p style="padding-left: 30px;">&#60;td class="CaptionTD ui-widget-content"&#62;Dependence&#60;/td&#62;</p>
<p style="padding-left: 30px;">&#60;td style="white-space: pre;" class="DataTD ui-widget-content"&#62;&#38;nbsp;</p>
<p style="padding-left: 60px;">&#60;select role="select" class="FormElement" id="dependence" name="dependence" size="1"&#62;&#60;option value="0" role="option"&#62;&#60;/option&#62;&#60;/select&#62;</p>
<p style="padding-left: 30px;">&#60;/td&#62;</p>
<p>&#60;/tr&#62;</p>
</p>
<p>How I can to access to the select element? I can&#39;t access with this:<br />$("select#tr_dependence")</p>
</p>
<p>I want to fill this select with data. I put another post in the forum</p>
</p>
<p>Regards, Adrian</p>
]]></description>
        	        	<pubDate>Sat, 15 Jan 2011 23:29:16 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on Dynamically Populate Select Dropdown</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dynamically-populate-select-dropdown/page-2#p21694</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dynamically-populate-select-dropdown/page-2#p21694</guid>
        	        	<description><![CDATA[<p>Hello!</p>
<p>You can use Developer Tools of Internet Explorer or Google Chrome or Firebug in Firefox to examine the current modified HTML code any time. If you use Toolbar Filtering, then you will see that ids of all items from the toolbar have prefix "gs_". Probably you try use it in form editing of inline editing.</p>
<p>By the way Tenerife is my&#160;favorite&#160;island from the Canary&#160;Islands (I visited almost all from there).</p>
<p>Best wishes from Germany<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Sat, 15 Jan 2011 22:50:36 +0200</pubDate>
        </item>
        <item>
        	<title>bogoa666 on Dynamically Populate Select Dropdown</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dynamically-populate-select-dropdown/page-2#p21691</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dynamically-populate-select-dropdown/page-2#p21691</guid>
        	        	<description><![CDATA[<blockquote>
<p>OlegK said:</p>
<p>Hello Candra,</p>
<p>It seems to me that your code have at least the error inside of $.get success handler. You should use $("select#<strong>gs_</strong>City").html(res) instead of&#160;$("#City").html(res).</p>
<p>Best regards<br />Oleg&#160;</p>
</blockquote>
<hr />
<p>It doesn&#39;t work to me.</p>
<p>I&#39; dont know why "select#<strong>gs_</strong>City" and not "select#<strong></strong>City" ? where can I find information of this?</p>
]]></description>
        	        	<pubDate>Sat, 15 Jan 2011 21:27:09 +0200</pubDate>
        </item>
        <item>
        	<title>Candrairawan78 on Dynamically Populate Select Dropdown</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dynamically-populate-select-dropdown/page-2#p21681</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dynamically-populate-select-dropdown/page-2#p21681</guid>
        	        	<description><![CDATA[<p>Dear OlegK,</p>
<p>I have tried but nothing happend. I think the problem is on event change function.</p>
<p>dataEvents: [ { <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; type: &#39;change&#39;, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; fn: function(e) { <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var thisval = $(e.target).val(); <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var getSelectFilterUrl=&#39;filterselect/filtercity.php&#39;; // get all cities <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (thisval !==&#39;&#39;) { <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // not "All" is choosed <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; getSelectFilterUrl += &#39;?Country=&#39;+encodeURIComponent(thisval); <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; } <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // do what yoou need <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $.get(&#39;filterselect/filtercity.php?Country=&#39;+thisval, function(data) <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { var res = $(data).html(); <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("select#gs_City").html(res); <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }); // end get <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; } //end func <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; } ] // end type, dataevents</p>
</p>
<p>When I choose USA of country select dropdown, the city select dropdown should consist of New York and Washington.</p>
<p>From here, I cann`t use multiple search. When I back to choose New York of city  select dropdown, I want the country select dropdown should consist of country which New york city lies and keep selected on New York. but it always refreshed to &#39;all&#39; selected.</p>
<p>Best Regards,</p>
<p>Candra</p>
]]></description>
        	        	<pubDate>Sat, 15 Jan 2011 02:53:02 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on Dynamically Populate Select Dropdown</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dynamically-populate-select-dropdown/page-2#p21668</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dynamically-populate-select-dropdown/page-2#p21668</guid>
        	        	<description><![CDATA[<p>Hello Candra,</p>
<p>Parameters of &#39;navGrid&#39; function contains options for Add, Edit, Del,View dialogs. Add and Edit options support recreateForm:true setting. So the call will be</p>
<p>jQuery("#list").jqGrid(&#39;navGrid&#39;,&#39;#pager&#39;,<br />&#160;&#160;{edit:true, edittext:&#39;Edit&#39;,add:true,addtext:&#39;Add&#39;,del:true, deltext:&#39;Delete&#39;,search:false, refresh:false, view:true, viewtext:&#39;View&#39;},&#160;<br />&#160; {<strong>recreateForm:true,</strong>jqModal:true, top: 120, left: 480, width: 350, drag:false, resize:false, reloadAfterSubmit:true, closeOnEscape:true, checkOnUpdate:true, savekey: [true,13], navkeys: [true,38,40], checkOnSubmit : true, closeAfterEdit: true},// edit options&#160;<br />&#160; {<strong>recreateForm:true,</strong>jqModal:true, top: 120, left: 480, width: 350, drag:false, resize:false, reloadAfterSubmit:true, closeOnEscape:true,&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; savekey: [true,13], navkeys: [true,38,40]&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ,&#160; closeAfterAdd: true}, // add options&#160;<br />&#160; {jqModal:true, top: 120, left: 480, drag:false, resize:false, reloadAfterSubmit:true, closeOnEscape:true}, // del options&#160;<br />&#160; {multipleSearch:true}, // enable the advanced searching&#160;<br />&#160; {jqModal:true, top: 120, left: 480, drag:false, resize:false, navkeys: [true,38,40], closeOnEscape:true}); // view options&#160;</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Fri, 14 Jan 2011 03:34:06 +0200</pubDate>
        </item>
        <item>
        	<title>Candrairawan78 on Dynamically Populate Select Dropdown</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dynamically-populate-select-dropdown/page-2#p21667</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dynamically-populate-select-dropdown/page-2#p21667</guid>
        	        	<description><![CDATA[<p>Dear OlegK,</p>
<p>Excuse me, where should I put the recreateForm:true? I am sorry I don`t understand</p>
<p>Best Regards,</p>
<p>Candra</p>
]]></description>
        	        	<pubDate>Fri, 14 Jan 2011 02:42:51 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on Dynamically Populate Select Dropdown</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dynamically-populate-select-dropdown/page-2#p21644</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dynamically-populate-select-dropdown/page-2#p21644</guid>
        	        	<description><![CDATA[<p>Hello Candra!</p>
<p>First of all please try to use&#160;<a href="/jqgridwiki/doku.php?id=wiki:form_editing#properties" target="_blank">recreateForm:true</a>&#160;option&#160;which you not use currently. Look at another problem about caching of <strong>dataUrl</strong>&#160;described <a href="/blog/?page_id=393/help/allow-form-edit-to-call-dataurl-each-time-form-is-opened/#p21640" target="_blank">here</a>&#160;and write me whether it help or not.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Wed, 12 Jan 2011 19:06:16 +0200</pubDate>
        </item>
        <item>
        	<title>Candrairawan78 on Dynamically Populate Select Dropdown</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dynamically-populate-select-dropdown/page-2#p21642</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dynamically-populate-select-dropdown/page-2#p21642</guid>
        	        	<description><![CDATA[<p>Dear OlegK,</p>
<p>I am sorry for bothering you. I really appreciate your help so far. Please apologize my fault and please check my code:</p>
</p>
<p>jQuery(document).ready(function(){ <br />&#160; var mygrid = <br />&#160; jQuery("#list").jqGrid({ <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; url:&#39;table.php?q=1&#39;, <br />&#160;&#160; &#160;&#160;&#160;&#160; datatype: &#39;json&#39;, <br />&#160;&#160; &#160;&#160;&#160;&#160; mtype: "POST", <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames:[&#39;Country&#39;,&#39;City&#39;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel :[ <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;Country&#39;, index:&#39;Country&#39;, width:100, editable:true, editoptions:{size:20, maxlength:&#39;40&#39;}, editrules:{required:true},&#160;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; formoptions:{elmprefix:"(*)"}, sortable:true, stype:&#39;select&#39;, search:true, searchoptions:</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {dataUrl:&#39;filterselect/filtercountry.php&#39;, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; dataEvents: [ { <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; type: &#39;change&#39;, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; fn: function(e) { <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var thisval = $(e.target).val(); <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var getSelectFilterUrl=&#39;filterselect/filtercity.php&#39;; // get all cities <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (thisval !==&#39;&#39;) { <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // not "All" is choosed <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; getSelectFilterUrl += &#39;?Country=&#39;+encodeURIComponent(thisval); <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; } <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // do what yoou need <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $.get(&#39;filterselect/filtercity.php?Country=&#39;+thisval, function(data) <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { var res = $(data).html(); <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("select#gs_City").html(res); <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }); // end get <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; } //end func <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; } ] // end type, dataevents <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }},</p>
<p>&#160;&#160; &#160; &#160;&#160;&#160; {name:&#39;City&#39;, index:&#39;City&#39;, width:70, editable:true, editoptions:{size:15}, editrules:{required:true}, formoptions:</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {elmprefix:"(*)"}, sortable:true, stype:&#39;select&#39;, search:true, searchoptions:{dataUrl:&#39;filterselect/filtercity.php?myid=initialid&#39;,</p>
<p>&#160; &#160;&#160; &#160; &#160;&#160; dataEvents: [ { <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; type: &#39;change&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; fn: function(e) { <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var thisval = $(e.target).val(); <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var getSelectFilterUrl=&#39;filterselect/filtercity.php&#39;; // get all cities <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (thisval !==&#39;&#39;) { <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // not "All" is choosed <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; getSelectFilterUrl += &#39;?City=&#39;+encodeURIComponent(thisval); <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; } <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // do what yoou need <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $.get(&#39;filterselect/filtercity.php?City=&#39;+thisval, function(data) <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { var res = $(data).html(); <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("select#gs_Country").html(res); <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }); // end get <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; } //end func <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; } ] // end type, dataevents <br />&#160;&#160; &#160;&#160; }}, <br />&#160;&#160; &#160;&#160; {name:&#39;Postal Code&#39;&#160;&#160;&#160;&#160;&#160; , index:&#39;PostalCode&#39;&#160;&#160;&#160;&#160;&#160; , width:90,&#160; align:&#39;right&#39;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; , editable:true, editoptions:{size:15,</p>
<p>&#160;&#160;&#160;&#160;&#160; maxlength:&#39;30&#39;}, editrules:{required:true}, formoptions:{elmprefix:"(*)"}}<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; ], <br />&#160;&#160; &#160; &#160;&#160; multiselect: true, <br />&#160;&#160; &#160;&#160;&#160;&#160; altRows: true, <br />&#160;&#160; &#160; &#160;&#160; pager: &#39;#pager&#39;, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowNum:50, <br />&#160;&#160; &#160;&#160;&#160;&#160; rownumbers: true, <br />&#160;&#160; &#160;&#160;&#160;&#160; gridview: true, <br />&#160;&#160; &#160;&#160;&#160;&#160; height: 260, <br />&#160;&#160; &#160;&#160;&#160;&#160; shrinkToFit: false, <br />&#160;&#160; &#160;&#160;&#160;&#160; width: 1105, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowList:[50,100,200], <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortname: &#39;Country&#39;,&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortorder: &#39;asc&#39;, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; viewrecords: true, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; caption: &#39;POSTAL CODE&#39;,<br />&#160;&#160; &#160;&#160;&#160;&#160; editurl:"edit/editpostalcode.php"<br />&#160; } <br />&#160; }); <br />&#160; &#160;<br />&#160; jQuery("#list").jqGrid(&#39;navGrid&#39;,&#39;#pager&#39;,{edit:true, edittext:&#39;Edit&#39;,add:true,addtext:&#39;Add&#39;,del:true, deltext:&#39;Delete&#39;,search:false, refresh:false, view:true, viewtext:&#39;View&#39;}, <br />&#160; {jqModal:true, top: 120, left: 480, width: 350, drag:false, resize:false, reloadAfterSubmit:true, closeOnEscape:true, checkOnUpdate:true, savekey: [true,13], navkeys: [true,38,40], checkOnSubmit : true, closeAfterEdit: true},// edit options <br />&#160; {jqModal:true, top: 120, left: 480, width: 350, drag:false, resize:false, reloadAfterSubmit:true, closeOnEscape:true,&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; savekey: [true,13], navkeys: [true,38,40]&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ,&#160; closeAfterAdd: true}, // add options <br />&#160; {jqModal:true, top: 120, left: 480, drag:false, resize:false, reloadAfterSubmit:true, closeOnEscape:true}, // del options <br />&#160; {multipleSearch:true}, // enable the advanced searching <br />&#160; {jqModal:true, top: 120, left: 480, drag:false, resize:false, navkeys: [true,38,40], closeOnEscape:true}); // view options <br />&#160; &#160;<br />&#160; jQuery("#list").jqGrid(&#39;navButtonAdd&#39;,"#pager",{caption:"Reset",title:"Reset Filter",buttonicon :&#39;ui-icon-refresh&#39;, &#160;<br />&#160;&#160; &#160;onClickButton:function(){ <br />&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; mygrid[0].clearToolbar() <br />&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // remove current selection in the &#39;Jenis Alat&#39; column <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var sel = $(&#39;select#gs_Country option:selected&#39;, mygrid[0].grid.hDiv) <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; .removeAttr(&#39;selected&#39;).parent(); <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // select &#39;All&#39; having option with the empty (&#39;&#39;) value <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // and trigger &#39;change&#39; to refresh all <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("option[value=&#39;&#39;]", sel[0]).attr(&#39;selected&#39;, &#39;selected&#39;).trigger(&#39;change&#39;); <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // remove current selection in the &#39;City&#39; column <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var sel = $(&#39;select#gs_City option:selected&#39;, mygrid[0].grid.hDiv) <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; .removeAttr(&#39;selected&#39;).parent(); <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // select &#39;All&#39; having option with the empty (&#39;&#39;) value <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // and trigger &#39;change&#39; to refresh all <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("option[value=&#39;&#39;]", sel[0]).attr(&#39;selected&#39;, &#39;selected&#39;).trigger(&#39;change&#39;);&#160;&#160; &#160; <br />&#160;&#160; &#160;} }); <br />&#160;&#160; &#160; <br />&#160; jQuery("#list").jqGrid(&#39;filterToolbar&#39;,{searchOnEnter : false});&#160; &#160;<br />});</p>
</p>
<p><strong>filtercity.php</strong></p>
<p>&#60;?php <br />include &#39;../config/connections.php&#39;; <br />$Country &#160;&#160;&#160; = $_GET[&#39;Country&#39;]; //some variable <br />&#160;<br />echo "&#60;select&#62; <br />&#60;option value=&#39;&#39;&#62;All&#60;/option&#62;"; <br />if ($Country &#60;&#62; &#39;&#39;) <br />{$query="SELECT * FROM table WHERE Country = &#39;$Country&#39; GROUP BY City";} <br />else <br />{$query="SELECT * FROM table GROUP BY City";} <br />$result = $db-&#62;query($query); <br />$numresult=$result-&#62;num_rows; <br />for ($i=0; $i&#60;$numresult; $i++) <br />&#160;&#160; &#160;{ <br />&#160;&#160; &#160;$row = $result-&#62;fetch_assoc(); <br />&#160; &#160;&#160;&#160; &#160;echo "&#60;option value=&#39;$row[City]&#39;&#62;$row[City]&#60;/option&#62;"; <br />&#160;&#160; &#160;} <br />echo "&#60;/select&#62;"; <br />?&#62;</p>
</p>
<p><strong>filtercountry.php</strong></p>
<p>&#60;?php <br />include &#39;../config/connections.php&#39;; <br />$City &#160;&#160;&#160; = $_GET[&#39;City&#39;]; //some variable <br />&#160;<br />echo "&#60;select&#62; <br />&#60;option value=&#39;&#39;&#62;All&#60;/option&#62;"; <br />if ($Kota &#60;&#62; &#39;&#39;) <br />{$query="SELECT * FROM table WHERE City = &#39;$City&#39; GROUP BY City";} <br />else <br />{$query="SELECT * FROM table GROUP BY City";} <br />$result = $db-&#62;query($query); <br />$numresult=$result-&#62;num_rows; <br />for ($i=0; $i&#60;$numresult; $i++) <br />&#160;&#160; &#160;{ <br />&#160;&#160; &#160;$row = $result-&#62;fetch_assoc(); <br />&#160; &#160;&#160;&#160; &#160;echo "&#60;option value=&#39;$row[City]&#39;&#62;$row[City]&#60;/option&#62;"; <br />&#160;&#160; &#160;} <br />echo "&#60;/select&#62;"; <br />?&#62;</p>
</p>
<p>Thank you for your help</p>
<p>Best Regards,</p>
<p>Candra</p>
]]></description>
        	        	<pubDate>Wed, 12 Jan 2011 18:53:10 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on Dynamically Populate Select Dropdown</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dynamically-populate-select-dropdown/page-2#p21615</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dynamically-populate-select-dropdown/page-2#p21615</guid>
        	        	<description><![CDATA[<p>Hello Candra!</p>
<p>One more question: do you use <a href="/jqgridwiki/doku.php?id=wiki:form_editing#properties" target="_blank">recreateForm:true</a> option? If you yet, try it. Probably it is just you problem. By the way I set the&#160;<a href="/blog/?page_id=393/feature-request/change-default-settings-for-recreatefilter-and-recreateform-to-true/" target="_blank">feature request</a> to change the default value of <a href="/jqgridwiki/doku.php?id=wiki:form_editing#properties" target="_blank">recreateForm</a>&#160;from false to true.</p>
<p>Best regards<br />Oleg</p>
]]></description>
        	        	<pubDate>Tue, 11 Jan 2011 00:41:48 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on Dynamically Populate Select Dropdown</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dynamically-populate-select-dropdown/page-2#p21586</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dynamically-populate-select-dropdown/page-2#p21586</guid>
        	        	<description><![CDATA[<p>Hello Candra,</p>
<p>Sorry, but I am just a user of jqGrid. I started with JavaScript development and with jqGrid about 1,5 year ago for one project. Because I studied JavaScript and jqGrid quickly and in the next project (like in all before) I don&#39;t need it, I started to answer to the question of other people mostly to keep and to expand my current knowledge in JavaScript and jqGrid. Slowly it becomes my hobby to help other people to use jqGrid. I answer on different jqGrid question in&#160;the stackoverflow.com and in the forum. But you should understand, that I have a lot of other things to do and have to do my main job which brings money for me and my family.</p>
<p>Your question is interesting for me. I think that other people could have the same requirements. So I tried to help you. But the problems which you describes in your last post are more specific to your existing code. You posted only&#160;pieces&#160;of the code. To be able to help you I have to write a small web service (I can not use your code fragments in PHP&#160;because PHP is not a language which I use for development) and of&#160;course&#160;the client code. I posted you many code fragments for the client and I don&#39;t know what from there you use currently, so I would have to write the client code based on the information which I have. All will take relatively much time which I don&#39;t have currently. Later I could go back to the problem, but currently I have to implement one project till the end of January, so I am not sure that I could help you before.</p>
<p>If you will make my work easy and post most code which can be used to reproduce your problem, probably I could find time&#160;before, but I can not promise you that.</p>
<p>Best &#160;regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Sat, 08 Jan 2011 19:14:48 +0200</pubDate>
        </item>
        <item>
        	<title>Candrairawan78 on Dynamically Populate Select Dropdown</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dynamically-populate-select-dropdown/page-2#p21585</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dynamically-populate-select-dropdown/page-2#p21585</guid>
        	        	<description><![CDATA[<p>Dear OlegK,</p>
<p>could you help me, please? Don`t leave me here<img class="spSmiley" style="margin:0" title="Cry" src="/blog/wp-content/forum-smileys/sf-cry.gif" alt="Cry" /></p>
<p>Candra</p>
]]></description>
        	        	<pubDate>Sat, 08 Jan 2011 15:41:51 +0200</pubDate>
        </item>
        <item>
        	<title>Candrairawan78 on Dynamically Populate Select Dropdown</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dynamically-populate-select-dropdown/page-2#p21505</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dynamically-populate-select-dropdown/page-2#p21505</guid>
        	        	<description><![CDATA[<p>Dear OlegK,</p>
<p>Happy New Year too guys.</p>
<p>Yes, that works. awesome<img class="spSmiley" style="margin:0" title="Surprised" src="/blog/wp-content/forum-smileys/sf-surprised.gif" alt="Surprised" /> but I found a new problem here.</p>
<p>If I choose USA of country select dropdown, the city select dropdown should consist of New York and Washington.</p>
<p>From here, I cann`t use multiple search. If I choose New York of city select dropdown, the contry select dropdown will change to &#39;All&#39;.</p>
<p>How to keep the value of country select dropdown just like the original multiple search from jqgrid demo?</p>
<p>Thank you OlegK, you have spent a lot of your time for me.</p>
<p>Best Regards,</p>
<p>Candra</p>
]]></description>
        	        	<pubDate>Sun, 02 Jan 2011 15:49:30 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on Dynamically Populate Select Dropdown</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dynamically-populate-select-dropdown/page-2#p21502</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dynamically-populate-select-dropdown/page-2#p21502</guid>
        	        	<description><![CDATA[<p>Hello Candra,</p>
<p>Happy New Year!</p>
<p>You say that if you select &#39;All&#39; in the&#160;dropdown list you receive the results which you need. So I suggest you to do this with respect of jQuery inside of onClickButton and before clearToolbar. The code could be for example the following:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2444' value='Select Code' data-codeid='sfcode2444' /></p>
<div class='sfcode' id='sfcode2444'>var mygrid&#160;= jQuery(&#34;#list&#34;);<br /> mygrid.jqGrid(&#39;navButtonAdd&#39;,<br />&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160;&#39;#pager&#39;,<br />&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160;{<br />&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;caption:&#34;Reset&#34;, title:&#34;Reset Filter&#34;, buttonicon:&#39;ui-icon-refresh&#39;,<br />&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;onClickButton: function() {<br />&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;<strong>// remove current selection in the &#39;Country&#39; column<br />&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;var sel = $(&#39;select#gs_Country option:selected&#39;, mygrid[0].grid.hDiv)<br />&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;.removeAttr(&#39;selected&#39;).parent();<br />&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;// select &#39;All&#39; having option with the empty (&#39;&#39;) value<br />&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;// and trigger &#39;change&#39; to refresh all<br />&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;$(&#34;option[value=&#39;&#39;]&#34;, sel[0]).attr(&#39;selected&#39;, &#39;selected&#39;).trigger(&#39;change&#39;);</strong><br /> &#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;mygrid[0].clearToolbar();<br />&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;}<br />&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160;}<br />);</div>
<p>I hope this will work in your environment.</p>
<p>Best regards<br /> Oleg</p>
]]></description>
        	        	<pubDate>Sun, 02 Jan 2011 13:21:17 +0200</pubDate>
        </item>
        <item>
        	<title>Candrairawan78 on Dynamically Populate Select Dropdown</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dynamically-populate-select-dropdown/page-2#p21500</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dynamically-populate-select-dropdown/page-2#p21500</guid>
        	        	<description><![CDATA[<p>Dear OlegK,</p>
<p>I have not succeeded yet to do your guide.</p>
<p>I see that if I change country of select dropdown to &#39;All&#39;, the city of select dropdown will return to original value ( get all cities).</p>
<p>I have an idea to insert your change event function into reset jqgrid section:</p>
</p>
<p>jQuery("#list").jqGrid(&#39;navButtonAdd&#39;,"#pager",{caption:"Reset",title:"Reset Filter",buttonicon :&#39;ui-icon-refresh&#39;, <br />&#160;&#160; &#160;onClickButton:function(){<br />&#160;&#160; &#160;&#160;&#160;&#160; //do something to change the country of select dropdown to &#39;All&#39;, so I do not need to clear search criteria(filter)</p>
<p><strong>&#160;&#160;&#160;&#160;&#160;&#160;&#160; // set getSelectFilterUrl=&#39;filterselect/filterselectcity.php&#39;; // get all cities</strong></p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; mygrid[0].clearToolbar() <br />&#160;&#160; &#160;} });</p>
</p>
<p>Could you help me do this, please?</p>
<p>Best Regards,</p>
<p>Candra</p>
]]></description>
        	        	<pubDate>Sat, 01 Jan 2011 17:13:41 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on Dynamically Populate Select Dropdown</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dynamically-populate-select-dropdown/page-2#p21401</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dynamically-populate-select-dropdown/page-2#p21401</guid>
        	        	<description><![CDATA[<p>Hello Candra,</p>
<p>Thank you for explanation. Now it&#39;s clear what you mean. Probably some seaching parameters are need be reseted before staring grid reload. I recommend you to look at <a href="http://stackoverflow.com/questions/3989786/jqgrid-clear-search-criteria/3992417#3992417" target="_blank">this old answer</a> which describe how search criteria (filter) can be cleared. You can do this for example inside your custom <a href="/jqgridwiki/doku.php?id=wiki:navigator#parameters" target="_blank">beforeRefresh</a> event handler. I hope it will work.</p>
<p>I have currently no working example which dynymicylly populate select dropdown list and work per ajax. Another example which implement the same locally you can find <a href="http://www.ok-soft-gmbh.com/jqGrid/DependendSelects3.htm" target="_blank">here</a>. I hope it could help you a litle.</p>
<p>Best regards<br />Oleg</p>
]]></description>
        	        	<pubDate>Thu, 23 Dec 2010 14:50:21 +0200</pubDate>
        </item>
        <item>
        	<title>Candrairawan78 on Dynamically Populate Select Dropdown</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dynamically-populate-select-dropdown/page-2#p21397</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dynamically-populate-select-dropdown/page-2#p21397</guid>
        	        	<description><![CDATA[<p>Dear OlegK,</p>
<p>Sorry for misunderstanding.</p>
<p>I mean the<strong> reset toolbar search</strong> is the sixth button of six jqgrid navigation buttons on pager which looks like recycled icon. They are:</p>
<p>1) Add New Row,</p>
<p>2) Edit Selected Row,</p>
<p>3) View Selected Row,</p>
<p>4) Delete Selected Row,</p>
<p>5) Find Records, and</p>
<p><strong>6) Reload Grid</strong></p>
<p>Best Regards,</p>
<p>Candra</p>
]]></description>
        	        	<pubDate>Thu, 23 Dec 2010 10:19:55 +0200</pubDate>
        </item>
</channel>
</rss>