<?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: inline edit of select column using editoptions.value trashes select value</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/inline-edit-of-select-column-using-editoptions-value-trashes-select-value</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/bugs/inline-edit-of-select-column-using-editoptions-value-trashes-select-value/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>rathomasjr on inline edit of select column using editoptions.value trashes select value</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/inline-edit-of-select-column-using-editoptions-value-trashes-select-value#p23328</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/inline-edit-of-select-column-using-editoptions-value-trashes-select-value#p23328</guid>
        	        	<description><![CDATA[<p>Using a &#39;value&#39; for a select edittype in IE 8 causes a problem in the &#39;editRow&#39; code because the &#39;setAttributes&#39; function (called from line: 5075) will overwrite the newly created select element &#39;value&#39; property. &#160;</p>
</p>
<p>This bug and the line-numbers apply to the jquery.jqGrid.src.js file version 4.0 downloaded today.</p>
</p>
<p>So on IE 8, what you will see is that when you call &#39;editRow&#39; to put the row into edit mode, any select cell will not be initialized with the correct option selected. The select control is in a state with no selections.</p>
</p>
<p>One workaround is to use a dataUrl to populate the select data instead.</p>
<p>I have put a quick patch to the setAttributes function by modifying one line 5029 which will ignore &#39;value&#39; attributes:</p>
<p> <!-- p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Tahoma} --></p>
<p class="p1">&#160;</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1780' value='Select Code' data-codeid='sfcode1780' /></p>
<div class='sfcode' id='sfcode1780'>var exclude = [&#39;dataInit&#39;,&#39;dataEvents&#39;,&#39;dataUrl&#39;, &#39;buildSelect&#39;,&#39;sopt&#39;, &#39;searchhidden&#39;, &#39;defaultValue&#39;, &#39;attr&#39;<span style=&#34;&#34;color:&#34;>, &#39;value&#39;</span>];</div></p>
]]></description>
        	        	<pubDate>Thu, 26 May 2011 00:20:55 +0300</pubDate>
        </item>
</channel>
</rss>