<?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: Number Formatting</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/number-formatting</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/number-formatting/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>sanchitos on Number Formatting</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/number-formatting#p12205</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/number-formatting#p12205</guid>
        	        	<description><![CDATA[<p>Well i think that the problem is that SQL Server saves decimal values with a comma, and the parse float uses a dot as decimal separator.</p>
</p>
<p>Sql database: 25,30</p>
<p>Parse float (25,30) -&#62; 25</p>
<p>Parse float (25.30) -&#62; 25.30</p>
</p>
<p>the NaN i&#39;m getting is not from the jqgrid, is from the parsefloat.</p>
</p>
<p>Thanks</p>
]]></description>
        	        	<pubDate>Thu, 19 Nov 2009 16:00:21 +0200</pubDate>
        </item>
        <item>
        	<title>sanchitos on Number Formatting</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/number-formatting#p12203</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/number-formatting#p12203</guid>
        	        	<description><![CDATA[<p>Using 3.5 version.</p>
<p>Sql Server 2008.</p>
<p>Value recovered is of type decimal.</p>
</p>
<p>I&#39;m experiencing a NaN column value when i try to format to type number.</p>
</p>
<p>When my number &#62; 1000 without format the value looks like this in the Grid: 50000,00. I would like that is like 50.000,00. So i tried to use the number formatting.</p>
</p>
<p>File locale-sp.js has this statement:</p>
</p>
<p>formatter : {<br />...<br />&#160;&#160;&#160; &#160;&#160;&#160; number : {decimalSeparator:",", thousandsSeparator: ".", decimalPlaces: 2, defaultValue: &#39;0,00&#39;},</p>
<p>...</p>
<p>}</p>
</p>
<p>So in my grid i wrote this:</p>
</p>
<p>colModel: [<br />..<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;valor&#39;, index: &#39;valor&#39;, width: 50, align: &#39;right&#39;, formatter: &#39;number&#39;},</p>
<p>..</p>
<p>]</p>
</p>
<p>BUT, the value is NaN, any help?</p>
</p>
<p>Thank you</p></p>
]]></description>
        	        	<pubDate>Thu, 19 Nov 2009 15:34:24 +0200</pubDate>
        </item>
</channel>
</rss>