<?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: Jquery UI autocomplete in search</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/jquery-ui-autocomplete-in-search</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/jquery-ui-autocomplete-in-search/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>nelsonm on Jquery UI autocomplete in search</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jquery-ui-autocomplete-in-search#p25135</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jquery-ui-autocomplete-in-search#p25135</guid>
        	        	<description><![CDATA[<p>however, i have made a few corrections to my post reference &#8211; as it was incorrect in describing how autocomplete works.</p>
<p>Look at my last post in that thread now: <a href="http://www.trirand.com/blog/?page_id=393/help/while-the-select-editoption-posts-the-value-or-id-of-the-selected-list-item-autocomplete-posts-the-label-i-need-id-posted/" rel="nofollow" target="_blank"><a href="http://www.trirand.com/blog/?p" rel="nofollow">http://www.trirand.com/blog/?p</a>.....id-posted/</a></p>
<p>and you will probably answer your own question.</p>
]]></description>
        	        	<pubDate>Fri, 11 Nov 2011 18:14:58 +0200</pubDate>
        </item>
        <item>
        	<title>merlux on Jquery UI autocomplete in search</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jquery-ui-autocomplete-in-search#p25130</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jquery-ui-autocomplete-in-search#p25130</guid>
        	        	<description><![CDATA[<p>Thank you</p>
]]></description>
        	        	<pubDate>Fri, 11 Nov 2011 11:56:32 +0200</pubDate>
        </item>
        <item>
        	<title>nelsonm on Jquery UI autocomplete in search</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jquery-ui-autocomplete-in-search#p25128</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jquery-ui-autocomplete-in-search#p25128</guid>
        	        	<description><![CDATA[<p>look at my post...&#160; <a href="http://www.trirand.com/blog/?page_id=393/help/while-the-select-editoption-posts-the-value-or-id-of-the-selected-list-item-autocomplete-posts-the-label-i-need-id-posted/" rel="nofollow" target="_blank"><a href="http://www.trirand.com/blog/?p" rel="nofollow">http://www.trirand.com/blog/?p</a>.....id-posted/</a></p>
]]></description>
        	        	<pubDate>Fri, 11 Nov 2011 10:50:11 +0200</pubDate>
        </item>
        <item>
        	<title>merlux on Jquery UI autocomplete in search</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jquery-ui-autocomplete-in-search#p25127</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jquery-ui-autocomplete-in-search#p25127</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I have a problem with the integration of jquery-ui autocomplete and jqgrid in search fields.</p>
<p>My code:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7463' value='Select Code' data-codeid='sfcode7463' /></p>
<div class='sfcode' id='sfcode7463'>&#60;script type=&#34;text/javascript&#34;&#62;<br />lastSel = 0;<br />jQuery(&#34;#list2&#34;).jqGrid({ <br />&#160;&#160; &#160;url:&#39;./accoglienza/ajax-dati&#39;, <br />&#160;&#160; &#160;datatype: &#34;json&#34;, <br />&#160;&#160; &#160;colNames:[&#39;id&#39;, &#39;Ospite&#39;, &#39;Cognome&#39;, &#39;Nome&#39;, &#39;Localit&#38;agrave;&#39;, &#39;Istituto&#39;, &#39;Data ammissione&#39;, &#39;Att. diurna&#39;, &#39;Punteggio&#39;, &#39;Retta giornaliera&#39;, &#39;Data dimissione&#39;, &#39;Azioni&#39;], <br />&#160;&#160; &#160;colModel:[ <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;LAT_ID&#39;,index:&#39;LAT_ID&#39;, hidden: true, editable: true, editrules: { edithidden: false }, hidedlg: true},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;OSP_ID&#39;,index:&#39;OSP_ID&#39;, hidden: true, editable: true, editrules: { edithidden: false }, hidedlg: true},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;PER_COGNOME&#39;,index:&#39;PER_COGNOME&#39;, width:150, searchoptions: {sopt:[&#39;eq&#39;,&#39;ne&#39;,&#39;bw&#39;]}}, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;PER_NOME&#39;,index:&#39;PER_NOME&#39;, width:150, searchoptions: {sopt:[&#39;eq&#39;,&#39;ne&#39;,&#39;bw&#39;]}},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;LOC_ID&#39;,index:&#39;LOC_ID&#39;, width:150, searchoptions: {sopt:[&#39;eq&#39;,&#39;ne&#39;], dataInit:function(elem){<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$(elem).autocomplete({<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;source: &#34;/Invalidi/public/localita/ajax-dati&#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;minLength: 2,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;select: function(event, ui) {<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; //${elem).val(ui.item.id); //doesn&#39;t work!<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;});<br />&#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;{name:&#39;IST_NOME&#39;,index:&#39;IST_NOME&#39;, width:150, searchoptions: {sopt:[&#39;eq&#39;,&#39;ne&#39;,&#39;bw&#39;]}},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;ACC_DATA_AMMISSIONE&#39;,index:&#39;ACC_DATA_AMMISSIONE&#39;, width:100, searchoptions: {sopt:[&#39;eq&#39;,&#39;ne&#39;,&#39;lt&#39;,&#39;le&#39;,&#39;gt&#39;,&#39;ge&#39;]}},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;ACC_ATTIVITA_DIURNA&#39;,index:&#39;ACC_ATTIVITA_DIURNA&#39;, width:170, searchoptions: {sopt:[&#39;eq&#39;]}, stype: &#39;select&#39;, searchoptions: { value: &#34;&#60;?php echo $this-&#62;attivitaDiurna;?&#62;&#34; } },<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;ACC_PUNTEGGIO&#39;,index:&#39;ACC_PUNTEGGIO&#39;, align: &#39;right&#39;, width:50, searchoptions: {sopt:[&#39;eq&#39;,&#39;ne&#39;,&#39;lt&#39;,&#39;le&#39;,&#39;gt&#39;,&#39;ge&#39;]}},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;ACC_RETTA_GIORNALIERS&#39;,index:&#39;ACC_RETTA_GIORNALIERS&#39;, align: &#39;right&#39;, width:80, searchoptions: {sopt:[&#39;eq&#39;,&#39;ne&#39;,&#39;lt&#39;,&#39;le&#39;,&#39;gt&#39;,&#39;ge&#39;]}},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;ACC_DATA_DIMISSIONE&#39;,index:&#39;ACC_DATA_DIMISSIONE&#39;, width:150, searchoptions: {sopt:[&#39;eq&#39;,&#39;ne&#39;,&#39;lt&#39;,&#39;le&#39;,&#39;gt&#39;,&#39;ge&#39;]}},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160; //&#160;&#160; &#160;{name:&#39;ANNO&#39;,index:&#39;ANNO&#39;, width:50, align:&#39;center&#39;, searchoptions: {sopt:[&#39;eq&#39;]}},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;AZIONI&#39;,index:&#39;AZIONI&#39;, width:50, align:&#39;center&#39;, search: false}<br />&#160;&#160; &#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;], <br />&#160;&#160;&#160; rowNum:20, <br />&#160;&#160;&#160; pager: &#39;#pager2&#39;, <br />&#160;&#160;&#160; sortname: &#39;PER_COGNOME&#39;, <br />&#160;&#160;&#160; viewrecords: true, <br />&#160;&#160;&#160; sortorder: &#34;asc&#34;, <br />&#160;&#160;&#160; caption:&#34;Ospiti&#34;,<br />&#160;&#160;&#160; width:950,<br />&#160;&#160;&#160; height:250,<br />&#160;&#160;&#160; hidegrid: false, beforeSearch:function(){alert(&#39;ciao&#39;);}<br />&#160;&#160; &#160;}); <br />&#160;&#160; &#160;jQuery(&#34;#list2&#34;).jqGrid(&#39;navGrid&#39;,&#39;#pager2&#39;,{edit:false,add:false,del:false},{},{},{},{multipleSearch:true})<br />&#160;&#160; &#160;/*.navButtonAdd(&#39;#pager2&#39;,{<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; caption:&#34;&#34;, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; buttonicon:&#34;ui-icon ui-icon-pencil&#34;, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; onClickButton: function(){ <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; var gr = jQuery(&#34;#list2&#34;).jqGrid(&#39;getGridParam&#39;,&#39;selrow&#39;);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; var ospId = jQuery(&#34;#list2&#34;).getCell(gr,&#39;OSP_ID&#39;);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; if( gr != null ) <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; window.location.href = &#39;accoglienza/modifica?LAT_ID=&#39; + gr + &#39;&#38;OSP_ID=&#39; + ospId;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; else <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; alert(&#34;Per favore, seleziona un ospite&#34;);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; }, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; position:&#34;last&#34;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; title:&#34;Modifica dati dell&#39;ospite&#34;<br />&#160;&#160; &#160;})*/<br />&#160;&#160; &#160;.navButtonAdd(&#39;#pager2&#39;,{<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; caption:&#34;&#34;, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; buttonicon:&#34;ui-icon ui-icon-plus&#34;, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; onClickButton: function(){ <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;window.location.href = &#39;lista-attesa/modifica&#39;;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; }, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; position:&#34;last&#34;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; title:&#34;Inserisci un ospite&#34;<br />&#160;&#160; &#160;});&#160;&#160; &#160;<br />&#60;/script&#62;</div>
<p>Autocomplete works perfectly, by typing it make a request and the result is displayed. When I select a result, the search field is filled with the value. The problem is: when I press the search button, the search request contains what I have entered with the keyboard, and not the value of the autocomplete option selected.</p>
<p>What&#39;s wrong?</p>
<p>Sorry for my english</p>
<p>Have a nice day</p></p>
]]></description>
        	        	<pubDate>Fri, 11 Nov 2011 10:30:19 +0200</pubDate>
        </item>
</channel>
</rss>