<?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: False Sorting of Integer with thousandsSeparator</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/false-sorting-of-integer-with-thousandsseparator</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/false-sorting-of-integer-with-thousandsseparator/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on False Sorting of Integer with thousandsSeparator</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/false-sorting-of-integer-with-thousandsseparator#p9446</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/false-sorting-of-integer-with-thousandsseparator#p9446</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thanks. Already fixed in in 3.5.3 Release.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 08 Sep 2009 08:32:59 +0300</pubDate>
        </item>
        <item>
        	<title>Juergen on False Sorting of Integer with thousandsSeparator</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/false-sorting-of-integer-with-thousandsseparator#p9375</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/false-sorting-of-integer-with-thousandsseparator#p9375</guid>
        	        	<description><![CDATA[<blockquote>
<p>markw65 said:</p>
</p>
<p>Looks like something along the lines of:</p>
<p>var sep = op.thousandsSeparator.replace(/([\\.\\*\\(\\)\\{\\}\\+\\?\\\\])/g,&#8221;\\\\$1&#8243;);</p>
<p>stripTag = new RegExp(sep, &#8220;g&#8221;);</p>
</p>
<p>should do the trick.</p>
</blockquote>
<p><strong>Yes! It does the trick.</strong></p>
</p>
<p>Thanks a million!<img class="spSmiley" style="margin:0" title="Laugh" src="/blog/wp-content/forum-smileys/sf-laugh.gif" alt="Laugh" /></p>
<p>Juergen</p>
]]></description>
        	        	<pubDate>Fri, 04 Sep 2009 14:07:43 +0300</pubDate>
        </item>
        <item>
        	<title>markw65 on False Sorting of Integer with thousandsSeparator</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/false-sorting-of-integer-with-thousandsseparator#p9361</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/false-sorting-of-integer-with-thousandsseparator#p9361</guid>
        	        	<description><![CDATA[<p>The problem is in $.unformat:</p>
</p>
<p>stripTag = eval("/"+op.thousandsSeparator+"/g");<br />ret = $(cellval).text().replace(stripTag,&#39;&#39;);</p>
</p>
<p>If op.thousandsSeparator is ".", that replaces the entire text with &#39;&#39; (the pattern becomes /./g which matches everything).</p>
</p>
<p>Looks like something along the lines of:</p>
<p>var sep = op.thousandsSeparator.replace(/([\\.\\*\\(\\)\\{\\}\\+\\?\\\\])/g,"\\\\$1");</p>
<p>stripTag = new RegExp(sep, "g");</p>
</p>
<p>should do the trick. I think that covers all the special chars. An alternative would be:</p>
</p>
<p>sep = op.thousandsSeparator.replace(/([^\\w\\s])/g,"\\\\$1");</p>
</p>
<p>That should guarantee to hit all the chars that need quoting - but also hits a few that dont.</p>
]]></description>
        	        	<pubDate>Fri, 04 Sep 2009 10:59:49 +0300</pubDate>
        </item>
        <item>
        	<title>Juergen on False Sorting of Integer with thousandsSeparator</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/false-sorting-of-integer-with-thousandsseparator#p9356</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/false-sorting-of-integer-with-thousandsseparator#p9356</guid>
        	        	<description><![CDATA[<p>Hello Tony,</p>
</p>
<p>the sorttype in colModel is set to "int":</p>
</p>
<p>jQuery(document).ready(function(){&#160;&#160;&#160;</p>
<p>tableToGrid(&#39;#irgendwas&#39;,<br />{ height:370,<br />colNames:[&#39;Artikelnummer&#39;,&#39;Bezeichnung1&#39;, &#39;Bezeichnung2&#39;, &#39;Bezeichnung3&#39;,&#39;Bestand&#39;,&#39;Abfragedatum&#39;],</p>
<p>colModel:[ <br />{name:&#39;Artikelnummer&#39;,index:&#39;1&#39;, width:"115", sorttype:"int",align:&#39;right&#39;},<br />{name:&#39;Bezeichnung1&#39;,index:&#39;2&#39;},<br />{name:&#39;Bezeichnung2&#39;,index:&#39;3&#39;},<br />{name:&#39;Bezeichnung3&#39;,index:&#39;4&#39;},<br /><span style="color: #ff0000;">{name:&#39;Bestand&#39;,index:&#39;5&#39;, sorttype:&#39;int&#39;, width:"90", formatter:&#39;integer&#39;,align:&#39;right&#39;},</span><br />{name:&#39;Abfragedatum&#39;,index:&#39;6&#39;, sorttype:"date"}],<br />autowidth:true});</p>
</p>
<p>Regards</p>
<p>Juergen</p>
]]></description>
        	        	<pubDate>Fri, 04 Sep 2009 09:52:29 +0300</pubDate>
        </item>
        <item>
        	<title>tony on False Sorting of Integer with thousandsSeparator</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/false-sorting-of-integer-with-thousandsseparator#p9328</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/false-sorting-of-integer-with-thousandsseparator#p9328</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Do you have set in colModel the property sorttype of that column, this is needed when we use local data</p>
<p><a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:retrieving_data#array_data" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>.....array_data</a></p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 04 Sep 2009 05:11:52 +0300</pubDate>
        </item>
        <item>
        	<title>Juergen on False Sorting of Integer with thousandsSeparator</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/false-sorting-of-integer-with-thousandsseparator#p9255</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/false-sorting-of-integer-with-thousandsseparator#p9255</guid>
        	        	<description><![CDATA[<p>Hello!</p>
</p>
<p>I am using grid.locale-de.js - if i set a dot as thousandsSeparator:</p>
<p>formatter:{integer:{thousandsSeparator:".",defaultValue:"0"}</p>
<p>The Numbers are sorted in false order e.g. 0,1021,213 indstead of 0,213,1021</p>
</p>
<p>If i use an other thousandsSeparator like space " " the numbers are sorted correct.</p>
</p>
<p>Can anybody help me</p>
<p>Juergen</p>
]]></description>
        	        	<pubDate>Thu, 03 Sep 2009 06:42:56 +0300</pubDate>
        </item>
</channel>
</rss>