<?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: Autocomplete</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/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/autocomplete/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Autocomplete</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/autocomplete#p3443</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/autocomplete#p3443</guid>
        	        	<description><![CDATA[<p>var myvalset;</p>
<p>&#8230;.</p>
<p>function onEditFunc1(id){ <br />&#160; jQuery(&#8221;#&#8221;+id+&#8221;_EntityName&#8221;,&#8221;#grid1&#8243;).<br />&#160; autocomplete(&#8221;/ajax_server/autocomplete/group_lookup.php&#8221;, {<br />&#160;&#160;&#160; width: 100,<br />&#160;&#160;&#160; selectFirst: false<br />&#160; });</p>
<p>&#160; $(&#8221;#&#8221;+id+&#8221;_EntityName&#8221;).result(function(event, data, formatted) {<br />&#160;&#160;&#160; if (data) {<br />&#160;&#160;&#160;&#160;&#160; myvalset = data[1];&#160;&#160;&#160; &#160;</p>
<p>} else { myvalset = null;}<br />&#160; });</p>
<p>}</p>
<p>function onAfterSave1(id){<br />&#160;&#160;&#160; if (myvalset) {<br />&#160;&#160;&#160;&#160;&#160; jQuery(&#8221;#grid1&#8243;).setRowData(id,{&#39;EntityID&#39;:myvalset});</p>
<p>}<br />}</p>
]]></description>
        	        	<pubDate>Tue, 09 Dec 2008 06:33:34 +0200</pubDate>
        </item>
        <item>
        	<title>Barry on Autocomplete</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/autocomplete#p3428</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/autocomplete#p3428</guid>
        	        	<description><![CDATA[<p>Tony,</p>
<p>The forum software is no good.</p>
<p>I don&#39;t understand what you said because<br />key text is missing.</p>
<p>How do I get the aftersave function to fire?</p></p>
]]></description>
        	        	<pubDate>Thu, 04 Dec 2008 17:05:39 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Autocomplete</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/autocomplete#p3425</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/autocomplete#p3425</guid>
        	        	<description><![CDATA[<p>Hello Barry,</p>
<p>The result function of autocomplete is better to be in onEditFunc.</p>
<p>Also - the trick.</p>
<p>Define one global variable in the scope, set this variable in result</p>
<p>function and the in aftersave function change the needed grid cell.</p>
<p>If you change only one value I suggest you to use setCell method</p>
<p>(see docs)</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 04 Dec 2008 13:13:38 +0200</pubDate>
        </item>
        <item>
        	<title>Barry on Autocomplete</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/autocomplete#p3414</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/autocomplete#p3414</guid>
        	        	<description><![CDATA[<p>I guess I am doing something wrong. The aftersavefunction is not being called.</p>
<p>&#8230;editRow(&#8221;+cl+&#8221;,true,onEditFunc1,null,null,null,null,onAfterSave1);&#62;&#8221;;</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2750' value='Select Code' data-codeid='sfcode2750' /></p>
<div class='sfcode' id='sfcode2750'>function onEditFunc1(id){ <br />&#160; jQuery(&#8221;#&#8221;+id+&#8221;_EntityName&#8221;,&#8221;#grid1&#8243;).<br />&#160; autocomplete(&#8221;/ajax_server/autocomplete/group_lookup.php&#8221;, {<br />&#160;&#160;&#160; width: 100,<br />&#160;&#160;&#160; selectFirst: false<br />&#160; });<br />}</p>
<p>function onAfterSave1(id){<br />&#160; $(&#8221;#&#8221;+id+&#8221;_EntityName&#8221;).result(function(event, data, formatted) {<br />&#160;&#160;&#160; if (data)<br />&#160;&#160;&#160;&#160;&#160; //alert(formatted);<br />&#160;&#160;&#160;&#160;&#160; //alert(data[0] + &#8221; &#8221; + data[1]);<br />&#160;&#160;&#160;&#160;&#160; //jQuery(&#8221;#&#8221;+id+&#8221;_EntityID&#8221;,&#8221;#grid1&#8243;).val(data[1]);<br />&#160;&#160;&#160;&#160;&#160; jQuery(&#8221;#grid1&#8243;).setRowData(id,{&#39;EntityID&#39;:data[1]});&#160;&#160;&#160; &#160;<br />&#160; });<br />}</p>
</div>
<p>Is this what you had in mind?</p>
<p>Barry</p>
]]></description>
        	        	<pubDate>Thu, 04 Dec 2008 11:03:02 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Autocomplete</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/autocomplete#p3390</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/autocomplete#p3390</guid>
        	        	<description><![CDATA[<p>Hello Barry,</p>
<p>One possible solution is to use the events available in autocomplete -</p>
<p>i.e. if the value is selected - get the id and set it to the grid using</p>
<p>setRowData method. I reccomend you to use aftersavefunc for this</p>
<p>purpose.</p>
</p>
<p>Best Regads</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 02 Dec 2008 04:09:02 +0200</pubDate>
        </item>
        <item>
        	<title>Barry on Autocomplete</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/autocomplete#p3387</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/autocomplete#p3387</guid>
        	        	<description><![CDATA[<p>I successfully configured autocomplete (inline edit).</p>
<p>My autocomplete returns UserName and UserID.</p>
<p>I want Username to be visible and UserID returned to the server.</p>
<p>1. If UserID is hidden then I can&#39;t seem to change it.</p>
<p>Is there a way that autocomplete results will bind like when using editoptions:{value:"FE:FedEx;IN:InTime;TN:TNT;AR:ARAMEX"}?</p>
<p>Perhaps someone has done this in a clean way and can reccommend a plan of attack.</p>
<p>Thanks!</p></p>
]]></description>
        	        	<pubDate>Mon, 01 Dec 2008 23:41:59 +0200</pubDate>
        </item>
</channel>
</rss>