<?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: bug in 3.7.2 sort...</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/bug-in-3-7-2-sort</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/bug-in-3-7-2-sort/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>jakemonO on bug in 3.7.2 sort...</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/bug-in-3-7-2-sort#p23643</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/bug-in-3-7-2-sort#p23643</guid>
        	        	<description><![CDATA[<p>I&#39;m reporting an issue in 3.7.2 that I&#39;ve patched locally. I patched the minimized version&#62; Unfortunately, I don&#39;t have the time to hook up the source version and test to find the definitve method to report, but I&#39;m posting my finding here anyways as a (quasi) public service in case the issue exists with later versions that may need the patch...</p>
</p>
<p>When sorting on a custom date I get an error on line 19 in jQuery.jqGrid.min.js:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4389' value='Select Code' data-codeid='sfcode4389' /></p>
<div class='sfcode' id='sfcode4389'>function(J){J&#124;&#124;(J=&#34;&#34;);return b.trim(J.toUpperCase()};</div>
<p>I get an object does not support property or method error in IE. The value of J when the error occurs is "Thu Jun 16 00:00:00 EDT 2011" but it&#39;s (apparently) not a String. The simple fix is:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9312' value='Select Code' data-codeid='sfcode9312' /></p>
<div class='sfcode' id='sfcode9312'>function(J){J&#124;&#124;(J=&#34;&#34;);return b.trim((&#34;&#34; + J).toUpperCase())};</div>
<p>Making sure that J evaluates to a string by casting it:&#160; ("" + J)</p>
</p>
<p>Hope this is useful to someone. If it is, please acknowledge just so I&#39;ll know... 🙂</p>
]]></description>
        	        	<pubDate>Thu, 16 Jun 2011 22:14:13 +0300</pubDate>
        </item>
</channel>
</rss>