<?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: Subgrid and Autocomplete</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/subgrid-and-autocomplete</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/subgrid-and-autocomplete/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>slin on Subgrid and Autocomplete</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/subgrid-and-autocomplete#p2367</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/subgrid-and-autocomplete#p2367</guid>
        	        	<description><![CDATA[<p>Hello Tony!</p>
<p>No problem 😉</p>
<p>I&#39;ve done some tests with Firebug and alerts. It seems that my function "autocomplete_field(id,field,table)" is well called but that the jQuery call is not.</p>
<p>In other words, that mean that next constructionis not good.</p>
<p><span class="sfcode">jQuery("#"+id+"_"+field,"#"+table).autocomplete("include/ac.clients.php", { ...</span></p>
<p>I think that it comes from <span class="sfcode">"#"+id+"_"+field,"#"+table</span></p>
<p>but I can&#39;t see why this is not good. Perhaps do I not respect something.</p>
<p>I&#39;ll continue my investigation 🙂</p>
<p>Thanks</p>
<p>SliN</p>
]]></description>
        	        	<pubDate>Tue, 07 Oct 2008 05:51:08 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Subgrid and Autocomplete</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/subgrid-and-autocomplete#p2338</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/subgrid-and-autocomplete#p2338</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I&#39;m sorry for the bad post - this tottaly is wrong.</p>
<p>Also try in function autocomplete_field function just to put alert and see</p>
<p>if it lunches. If this is the case, then check the input parameters if they are</p>
<p>correct.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 06 Oct 2008 12:40:33 +0300</pubDate>
        </item>
        <item>
        	<title>slin on Subgrid and Autocomplete</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/subgrid-and-autocomplete#p2329</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/subgrid-and-autocomplete#p2329</guid>
        	        	<description><![CDATA[<p>Hello !</p>
<p>First of all, thank you for your answer.</p>
<p>But it didn&#39;t fix the problem. when adding the "#"+id construction to the jQuery function, I can&#39;t edit the row.</p>
<p>Any other idea ?</p>
<p>🙂</p>
<p>Thanks</p>
<p>SliN</p>
]]></description>
        	        	<pubDate>Mon, 06 Oct 2008 01:39:04 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Subgrid and Autocomplete</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/subgrid-and-autocomplete#p2316</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/subgrid-and-autocomplete#p2316</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>try this</p>
<p>ondblClickRow:function(id){<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if(id &#38;&#38; id!==lastSel){<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(<strong>"#"+id</strong>,&#8221;#&#8221;+subgrid_table_id).restoreRow(lastSel);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(<strong>"#"+id</strong>,&#8221;#&#8221;+subgrid_table_id).editRow(<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,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; true,</p>
<p>....</p>
]]></description>
        	        	<pubDate>Fri, 03 Oct 2008 12:18:21 +0300</pubDate>
        </item>
        <item>
        	<title>slin on Subgrid and Autocomplete</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/subgrid-and-autocomplete#p2309</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/subgrid-and-autocomplete#p2309</guid>
        	        	<description><![CDATA[<p>Hello!</p>
<p>First of all, thanks to the developpers of jqGrid. This pluggin is just incredibable.</p>
<p>So I&#39;m trying to integrate autocomplete pluggin in a subgrid. For that I&#39;ve followed the documentation (with datepicker integration) and a post in this forum, explaining how to integrate autocomplete and a grid.</p>
<p>I&#39;ve been able to make it work in this context but I can&#39;t make it work in a subgrid.</p>
<p>I&#39;m using Firebug in order to debur and see any query sent, but nothing happens. It&#39;s just as if the autocomplete event is not launched when editing the field.</p>
<p>Here is the code I&#39;m using :</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9195' value='Select Code' data-codeid='sfcode9195' /></p>
<div class='sfcode' id='sfcode9195'>
<p>jQuery(&#8221;#list&#8221;).jqGrid({<br />&#160;&#160;&#160; #Main grid definition<br />&#160;&#160;&#160; url:&#39;devis.grid.php?id_devis=&#39;+&#60;?php echo $_GET[&#39;id&#39;];?&#62;,<br />&#160;&#160;&#160; datatype: &#39;xml&#39;,<br />&#160;&#160;&#160; &#8230;,<br />&#160;&#160;&#160; subGrid: true,<br />&#160;&#160;&#160; subGridRowExpanded: function(subgrid_id, row_id) {<br />&#160;&#160;&#160; &#160;&#160;&#160; #Subgrif definition<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; var subgrid_table_id, pager_id;<br />&#160;&#160;&#160; &#160;&#160;&#160; subgrid_table_id = subgrid_id+&#8221;_t&#8221;;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; pager_id = &#8220;p_&#8221;+subgrid_table_id;<br />&#160;&#160;&#160; &#160;&#160;&#160; $(&#8221;#&#8221;+subgrid_id).html(&#8221;&#60;table id=&#39;&#8221;+subgrid_table_id+&#8221;&#39; class=&#39;scroll&#39;&#62;&#60;/table&#62;&#60;div id=&#39;&#8221;+pager_id+&#8221;&#39; class=&#39;scroll&#39;&#62;&#60;/div&#62;&#8221;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(&#8221;#&#8221;+subgrid_table_id).jqGrid({<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#8230;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; ondblClickRow:function(id){<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if(id &#38;&#38; id!==lastSel){<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(&#8221;#&#8221;+subgrid_table_id).restoreRow(lastSel);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(&#8221;#&#8221;+subgrid_table_id).editRow(<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,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; autocomplete_field(id,&#8221;description&#8221;,subgrid_table_id),<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#39;&#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; &#39;devis.subgrid.php&#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; {&#39;id&#39;:id,&#39;id_niv1&#39;:row_id,&#39;oper&#39;:&#39;edit&#39;,&#39;id_devis&#39;:&#39;&#60;?php echo $_GET[&#39;id&#39;];?&#62;&#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; MAJ_montant_ht()<br />&#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; lastSel=id; <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; }<br />&#160;&#160;&#160; &#160;&#160;&#160; &#8230;<br />&#160;&#160;&#160; &#160;&#160;&#160; <br />&#160;&#160;&#160; &#160;&#160;&#160; <br />function autocomplete_field(id,field,table){ &#160;&#160;&#160; jQuery(&#8221;#&#8221;+id+&#8221;_&#8221;+field,&#8221;#&#8221;+table).autocomplete(&#8221;include/ac.clients.php&#8221;, {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; width: 300,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; multiple: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; mustMatch: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; matchContains: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; formatItem: function formatItem(row) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return row[0];<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; formatResult: function formatResult(row) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return row[0].replace(/(&#60;.+?&#62;)/gi, &#39;&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160; }); <br />};</p>
</div>
<p>I hope some one could help <img class="wp-smiley" src="/blog/wp-includes/images/smilies/icon_wink.gif" alt=";-)" /></p>
<p>Thanks</p>
<p>Slin</p>
]]></description>
        	        	<pubDate>Fri, 03 Oct 2008 03:41:25 +0300</pubDate>
        </item>
</channel>
</rss>