<?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: Dropdown loses value at second time inline edit</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/dropdown-loses-value-at-second-time-inline-edit</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/dropdown-loses-value-at-second-time-inline-edit/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Caroline on Dropdown loses value at second time inline edit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dropdown-loses-value-at-second-time-inline-edit#p21068</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dropdown-loses-value-at-second-time-inline-edit#p21068</guid>
        	        	<description><![CDATA[<p>Hi, I have been using this:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit3508' value='Select Code' data-codeid='sfcode3508' /></p>
<div class='sfcode' id='sfcode3508'>
<p>function buildListsSelect(response) {</p>
<p><span style=&#34;white-space: pre;&#34;> </span>if(typeof(response) == &#34;object&#34;) {</p>
<p><span style=&#34;white-space: pre;&#34;> </span>response = response.responseText;</p>
<p><span style=&#34;white-space: pre;&#34;> </span>}</p>
<p><span style=&#34;white-space: pre;&#34;> </span>var html = &#39;&#60;select&#62;&#39;;</p>
<p><span style=&#34;white-space: pre;&#34;> </span>var data = JSON.parse(response);</p>
<p><span style=&#34;white-space: pre;&#34;> </span>for(var i in data) html += &#39;&#60;option value=&#34;&#39; + i + &#39;&#34;&#62;&#39; + data[i] + &#39;&#60;/option&#62;&#39;;</p>
<p><span style=&#34;white-space: pre;&#34;> </span>html += &#39;&#60;/select&#62;&#39;;</p>
<p><span style=&#34;white-space: pre;&#34;> </span>return html;</p>
<p>}</p>
</div>
<p>Hope this helps.</p>
]]></description>
        	        	<pubDate>Thu, 02 Dec 2010 04:27:48 +0200</pubDate>
        </item>
        <item>
        	<title>johan on Dropdown loses value at second time inline edit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dropdown-loses-value-at-second-time-inline-edit#p21065</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dropdown-loses-value-at-second-time-inline-edit#p21065</guid>
        	        	<description><![CDATA[<p>Hi, I was wondering what you are doing for "myBuildSelect", I am having issues getting data to populate into a multiselect: true on edit.</p>
</p>
<p>Thanks!</p>
]]></description>
        	        	<pubDate>Thu, 02 Dec 2010 00:36:12 +0200</pubDate>
        </item>
        <item>
        	<title>Caroline on Dropdown loses value at second time inline edit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dropdown-loses-value-at-second-time-inline-edit#p20505</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dropdown-loses-value-at-second-time-inline-edit#p20505</guid>
        	        	<description><![CDATA[<p>Thank you for a great plugin!<br />I have a strange problem and after a lot of research, <br />I am unable to find a solution. I hoping that I might find help here...<br />I have a grid with a select box and rows are editable inline.<br />After I put one line in edit mode, if I perform a save (double click on another row or Enter),<br />and then edit the same line again, the dropdown loses it value (even though it is in the DB).<br />I have to reload the grid to get the correct value in the dropdown.<br />Any idea what might cause the problem?</p>
<p>Here is a bit of the code:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit265' value='Select Code' data-codeid='sfcode265' /></p>
<div class='sfcode' id='sfcode265'>jQuery(document).ready(function(){<br /> jQuery(&#34;#taxcodes_list&#34;).jqGrid({<br /> url:vUrl,<br /> datatype: &#34;json&#34;,<br /> colNames: [&#39;code&#39;, &#39;description&#39;, &#39;percentage&#39;, &#39;account_for_tax_collected&#39;, &#39;account_for_tax_paid&#39;],<br /> colModel: [{name:&#39;code&#39;, index:&#39;code&#39;, width:70, search:true, stype:&#39;text&#39;, searchoptions: { sopt: [&#39;eq&#39;, &#39;ne&#39;, &#39;cn&#39;]}, editable: true, editoptions:{size:&#39;10&#39;,maxlength:&#39;10&#39;}, editrules:{required:true}},{name:&#39;description&#39;, index:&#39;description&#39;, search:true, stype:&#39;text&#39;, searchoptions: { sopt: [&#39;eq&#39;, &#39;ne&#39;, &#39;cn&#39;]}, editable: true, editoptions:{size:&#39;50&#39;,maxlength:&#39;255&#39;}},{name:&#39;percentage&#39;, index:&#39;percentage&#39;, width:70, align:&#39;right&#39;,formatter:&#39;currency&#39;, search:true, stype:&#39;text&#39;, searchoptions: { sopt: [&#39;eq&#39;,&#39;ne&#39;,&#39;lt&#39;,&#39;le&#39;,&#39;gt&#39;,&#39;ge&#39;]}, editable: true, editoptions:{size:&#39;5&#39;,maxlength:&#39;5&#39;}, editrules:{number:true, minValue:0, maxValue:100}},{name:&#39;actaxcollected_id&#39;, index:&#39;actaxcollected_id&#39;, search:false, editable: true, edittype:&#39;select&#39;, editoptions:{buildSelect:myBuildSelect, dataUrl:&#39;<a href="http://localhost/CAN2007070117121801/lists/accounts&#038;#39" rel="nofollow" target="_blank">http://localhost/CAN2007070117121801/lists/accounts&#038;#39</a>;} },{name:&#39;actaxpaid_id&#39;, index:&#39;actaxpaid_id&#39;, search:false, editable: true, edittype:&#39;select&#39;, editoptions:{buildSelect:myBuildSelect, dataUrl:&#39;<a href="http://localhost/CAN2007070117121801/lists/accounts&#038;#39" rel="nofollow" target="_blank">http://localhost/CAN2007070117121801/lists/accounts&#038;#39</a>;} }],<br /> rowNum:25,<br /> rowList:[15,25,50,100],<br /> pager: &#39;#taxcodes_pager&#39;,<br /> sortname: &#34;code&#34;,<br /> sortorder: &#34;asc&#34;,<br /> prmNames : {search:&#34;search&#34;},<br /> autowidth:true,<br /> height: &#39;100%&#39;,<br /> viewrecords:true,<br /> multiselect: false,<br /> ondblClickRow: function(id){<br /> if (!update_access) return false;<br /> if(id &#38;&#38; id!==lastSel){<br /> jQuery(&#39;#taxcodes_list&#39;).jqGrid(&#39;restoreRow&#39;, lastSel);<br /> lastSel=id;<br /> } <br /> jQuery(&#39;#taxcodes_list&#39;).jqGrid(&#39;editRow&#39;, id, true); <br /> },<br /> editurl: vEditUrl<br /> });<br />});</div>
<p>Thanks for your help!</p>
]]></description>
        	        	<pubDate>Wed, 27 Oct 2010 08:55:31 +0300</pubDate>
        </item>
</channel>
</rss>