<?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: how to fill a select in editing form with a query</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-fill-a-select-in-editing-form-with-a-query</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/how-to-fill-a-select-in-editing-form-with-a-query/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>whoknows on how to fill a select in editing form with a query</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-fill-a-select-in-editing-form-with-a-query#p20302</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-fill-a-select-in-editing-form-with-a-query#p20302</guid>
        	        	<description><![CDATA[<p>Nice !</p>
<p>Thanks a lot :).</p>
]]></description>
        	        	<pubDate>Thu, 14 Oct 2010 10:05:06 +0300</pubDate>
        </item>
        <item>
        	<title>bogoa666 on how to fill a select in editing form with a query</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-fill-a-select-in-editing-form-with-a-query#p20299</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-fill-a-select-in-editing-form-with-a-query#p20299</guid>
        	        	<description><![CDATA[<p>it&#39;s work!!!</p>
<p>The solution is to use de <span style="text-decoration: underline;">dataUrl</span> option in <span style="text-decoration: underline;">editoptions</span> of <span style="text-decoration: underline;">colModel</span></p>
<p>jquery code:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7330' value='Select Code' data-codeid='sfcode7330' /></p>
<div class='sfcode' id='sfcode7330'>colModel :[{name:&#39;notification&#39;, index:&#39;notification&#39;, width:110, align:&#39;center&#39;, editable:true, edittype:&#39;select&#39;, editoptions:{dataUrl:&#39;/application/getNotificationSelect&#39;}, searchoptions: { sopt: [&#39;eq&#39;], value:&#34;true:Yes;false:No&#34; }, stype: &#39;select&#39;}]</div>
</p>
<p>server code:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6368' value='Select Code' data-codeid='sfcode6368' /></p>
<div class='sfcode' id='sfcode6368'>public static void getNotificationSelect(){ &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;String xml = &#34;&#60;select&#62;&#60;option value=&#39;true&#39;&#62;Yes&#60;/option&#62;&#60;option value=&#39;false&#39;&#62;No&#60;/option&#62;&#60;/select&#62;&#34;;<br />&#160;&#160; &#160;&#160;&#160;&#160; renderXml(xml);&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;<br />}</div>
</p>
<p>You only have to change the xml with other which was generated with your query items. This is only an example.</p>
<p>Note: renderXml(String xml) is a method of playframework which is the framework I use but you can use the same mothod to load the rows in the grid.</p>
]]></description>
        	        	<pubDate>Thu, 14 Oct 2010 00:30:37 +0300</pubDate>
        </item>
        <item>
        	<title>whoknows on how to fill a select in editing form with a query</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-fill-a-select-in-editing-form-with-a-query#p20290</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-fill-a-select-in-editing-form-with-a-query#p20290</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I have exactly the same problem, so if you find the answer let me know about it :).</p>
]]></description>
        	        	<pubDate>Wed, 13 Oct 2010 19:07:00 +0300</pubDate>
        </item>
        <item>
        	<title>bogoa666 on how to fill a select in editing form with a query</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-fill-a-select-in-editing-form-with-a-query#p20215</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-fill-a-select-in-editing-form-with-a-query#p20215</guid>
        	        	<description><![CDATA[<p>Hi, i have two tables and one of them depends of the other. So, when I want to add or edit a row of the second table, I need to fill a select with a query where the result are the diffents rows of the first table. Is it possible?</p>
<p>Thanks</p>
]]></description>
        	        	<pubDate>Sun, 10 Oct 2010 16:32:26 +0300</pubDate>
        </item>
</channel>
</rss>