<?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: Chained select box in dialog form</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/chained-select-box-in-dialog-form</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/chained-select-box-in-dialog-form/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Sam on Chained select box in dialog form</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/chained-select-box-in-dialog-form#p6945</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/chained-select-box-in-dialog-form#p6945</guid>
        	        	<description><![CDATA[<p>Sorry for time to respond.<br />This is exactly the solution of my problem.</p>
<p>Thanks a lot ;o)</p>
]]></description>
        	        	<pubDate>Thu, 28 May 2009 07:26:03 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Chained select box in dialog form</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/chained-select-box-in-dialog-form#p6074</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/chained-select-box-in-dialog-form#p6074</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>If I see your previous post - Yes you do not use the event in the right place.</p>
<p>The princip is to include the event in the appropriate options and not at end.</p>
<p>Here is the example:</p>
<p>).navGrid(&#8221;#nav_diplome_agricole&#8221;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {search:false,refresh:false}, // Options<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {reloadAfterSubmit:false,</p>
<p>onInitializeForm: function (formid) {</p>
<p>// do something here</p>
<p>}</p>
<p>}, // Options d\\&#39;&#233;dition<br />&#160;{reloadAfterSubmit:false,</p>
<p>onInitializeForm : function (formid){</p>
<p>// do something here</p>
<p>}</p>
<p>}, // Options d\\&#39;ajout<br />&#160;&#160; {reloadAfterSubmit:false}, // Options de suppression<br />&#160; {}</p>
<p>);</p>
<p>Hope this helps</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 16 Apr 2009 03:16:43 +0300</pubDate>
        </item>
        <item>
        	<title>Sam on Chained select box in dialog form</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/chained-select-box-in-dialog-form#p6043</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/chained-select-box-in-dialog-form#p6043</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thanks for your answer Tony and for the time you spend in support.</p>
<p>About my problem, it seems that i don&#39;t use <strong>onInitializeForm </strong>correctly.<br />In fact, if i try this :</p>
<p>{onInitializeForm:function(form_id){&#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; alert("Test");<br />}}</p>
<p>Nothing append, i already try something simple like :</p>
<p>{onInitializeForm:function(form_id){&#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; html_liste = "&#60;span&#62;Test&#60;/span&#62;";&#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; $("#diplome_id_diplome").html(html_liste);<br />}}</p>
<p>Is there any example i can use somewhere to continue my search ?<br />Thanks a lot,</p>
<p>Sam</p></p>
]]></description>
        	        	<pubDate>Wed, 15 Apr 2009 08:22:22 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Chained select box in dialog form</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/chained-select-box-in-dialog-form#p5998</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/chained-select-box-in-dialog-form#p5998</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Not sure, but take a look in the ajax, maybe you need</p>
<p>$.ajax({</p>
<p>...</p>
<p>complete: function(response, stat) {</p>
<p>$(&#8221;#diplome_id_diplome&#8221;).html(response.responseText);</p>
<p>}</p>
<p>...</p>
<p>});</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 14 Apr 2009 02:25:16 +0300</pubDate>
        </item>
        <item>
        	<title>Sam on Chained select box in dialog form</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/chained-select-box-in-dialog-form#p5940</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/chained-select-box-in-dialog-form#p5940</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>Any idea ? Since i post i tried some new research with no result.<br />If anyone can help <img class="spSmiley" style="margin:0" title="Wink" src="/blog/wp-content/plugins/simple-forum/tinymce/plugins/emotions/img/smiley-wink.gif" border="0" alt="Wink" /></p>
<p>Thanks</p>
]]></description>
        	        	<pubDate>Thu, 09 Apr 2009 10:44:16 +0300</pubDate>
        </item>
        <item>
        	<title>Sam on Chained select box in dialog form</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/chained-select-box-in-dialog-form#p5909</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/chained-select-box-in-dialog-form#p5909</guid>
        	        	<description><![CDATA[<p>Thanks for your answer, this is the code i use :</p>
<p style="padding-left: 30px;">).navGrid(&#8221;#nav_diplome_agricole&#8221;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {search:false,refresh:false}, // Options<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {reloadAfterSubmit:false}, // Options d\\&#39;&#233;dition<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {reloadAfterSubmit:false}, // Options d\\&#39;ajout<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {reloadAfterSubmit:false}, // Options de suppression<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {}, // Options de recherche&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {onInitializeForm :function(form_id){<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#8221;#etablissement_diplome_id_etablissement_diplome&#8221;, form_id).change(function(){</p>
<p style="padding-left: 30px;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // alert(&#8221;Test&#8221;);</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var id_etablissement_diplome = &#8220;&#8221;;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#8221;#etablissement_diplome_id_etablissement_diplome option:selected&#8221;).each(function () {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; id_etablissement_diplome = $(this).val();<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });</p>
<p style="padding-left: 30px;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // Appel du script php et r&#233;cup&#233;ration du code HTML g&#233;n&#233;r&#233;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var html_liste = $.ajax({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: &#8220;ajax/chargement.php?id_etablissement=&#8221;+id_etablissement_diplome,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; async: false<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }).responseText; <br />&#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; $(&#8221;#diplome_id_diplome&#8221;).html(html_liste); &#160;&#160; <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;&#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; );</p>
</p>
<p>#etablissement_diplome_id_etablissement_diplome = id of my first select box<br />#diplome_id_diplome = id of my second select box<br />chargement.php is a script witch return html code of second select box</p>
</p>
<p>Perhap&#39;s there is already more information in the doc, but i don&#39;t find it.</p>
<p>Thanks a lot</p>
<p>Samuel</p>
]]></description>
        	        	<pubDate>Tue, 07 Apr 2009 09:08:44 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Chained select box in dialog form</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/chained-select-box-in-dialog-form#p5906</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/chained-select-box-in-dialog-form#p5906</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>In onInitializeForm is the right place to do this. Could you please post the code?</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 07 Apr 2009 08:45:22 +0300</pubDate>
        </item>
        <item>
        	<title>Sam on Chained select box in dialog form</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/chained-select-box-in-dialog-form#p5893</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/chained-select-box-in-dialog-form#p5893</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>First thanks for this great work, i try several things very useful with jqgrid and it&#39;s a great ajax grid.</p>
<p>However, i have a problem with chained select box. I use the dialog form to add/edit data in the grid, and I have 2 select boxs that i want chained.</p>
<p>I tried events like <strong>intializeForm</strong> without succes. If someone could show me the way to search or give a few exemples it will be great.</p>
<p>I just want to load data from php script on change of a select box and load in a second select box.</p>
<p>Thanks,</p>
<p>Samuel</p>
<p>P.S : Please excuse my english, i tried to be explicit, if you don&#39;t understand i can explain my problem in another way.</p>
]]></description>
        	        	<pubDate>Tue, 07 Apr 2009 08:07:37 +0300</pubDate>
        </item>
</channel>
</rss>