<?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: buildSelect bug in 4.5.2, with fix.</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/buildselect-bug-in-4-5-2-with-fix</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/buildselect-bug-in-4-5-2-with-fix/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on buildSelect bug in 4.5.2, with fix.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/buildselect-bug-in-4-5-2-with-fix#p29461</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/buildselect-bug-in-4-5-2-with-fix#p29461</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>Thanks for the investigation. I will check this next week.</p>
</p>
<p>Kind Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 13 Sep 2013 11:42:13 +0300</pubDate>
        </item>
        <item>
        	<title>Grausam on buildSelect bug in 4.5.2, with fix.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/buildselect-bug-in-4-5-2-with-fix#p29455</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/buildselect-bug-in-4-5-2-with-fix#p29455</guid>
        	        	<description><![CDATA[<p>Only tested in editoptions. I&#39;ll play with sort options soon.&#160;</p>
<p>There is a bug in the buildselect. My fixes are in red.</p>
<p>In 4.4.4</p>
<p>Line 5850:</p>
<p>var a,	 ovm = [],  elem = this.elem,  vl = this.vl, 							options = $.extend({},this.options), 							msl = options.multiple===true; 							if($.isFunction(options.buildSelect))</p>
<p>{</p>
<p>&#160;var b = options.buildSelect.call($t,data);</p>
<p>&#160;a = $(b).html();</p>
<p>}</p>
<p>else {</p>
<p>&#160;a = $(data).html();</p>
<p>}</p>
<p>if(a) { 								$(elem).append(a);</p>
<p>....</p>
<p>elem is the &#60;select tag&#62;</p>
<p>In 4.5.2 at line 6055</p>
<p>var ovm = [], elem = this.elem, vl = this.vl, 							options = $.extend({},this.options), 							msl = options.multiple===true,</p>
<p>a = $.isFunction(options.buildSelect) ? options.buildSelect.call($t,data) : data;</p>
<p>if(typeof a === &#39;string&#39;) { 								<span style="color: #99cc00;">a = $( $.trim( a ) ).html();</span> } <span style="color: #99cc00;">//only happens if a is string</span></p>
<p>if(a) { 								$(elem).append(a);</p>
<p>Long Story Made Short: (My Fix)</p>
<p>a = $.isFunction(options.buildSelect) ? options.buildSelect.call($t, data) : data;</p>
<p>if (typeof a === &#39;string&#39;) {<span style="color: #ff0000;"> a = $.trim(a); </span> }</p>
<p><span style="color: #ff0000;"> a = $(a).html(); //This only gets applied if &#39;a&#39; is a string in 4.5.2, according to 4.4.4 it has to be applied universally.&#160;</span></p>
<p>if (a) {</p>
<p>&#160;$(elem).append(a);</p>
<p>...</p>
]]></description>
        	        	<pubDate>Wed, 11 Sep 2013 23:09:36 +0300</pubDate>
        </item>
</channel>
</rss>