<?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: Loosing Locale Information in Formatters with inline editing</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/loosing-locale-information-in-formatters-with-inline-editing</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/loosing-locale-information-in-formatters-with-inline-editing/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>chronohh on Loosing Locale Information in Formatters with inline editing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/loosing-locale-information-in-formatters-with-inline-editing#p20711</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/loosing-locale-information-in-formatters-with-inline-editing#p20711</guid>
        	        	<description><![CDATA[<p>Oh, there are side effects with the solution i mentioned&#160; above when you start inline editing but make no changes. When you press escape or leave the cell while clicking on another one, you will receive an "NaN"-Value in the column.</p>
</p>
<p>This is because of code in "jquery.fmatter.js", Line 67:</p>
</p>
<p>Change</p>
<p>&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7867' value='Select Code' data-codeid='sfcode7867' /></p>
<div class='sfcode' id='sfcode7867'>nData *= 1;</div>
<p>to</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8681' value='Select Code' data-codeid='sfcode8681' /></p>
<div class='sfcode' id='sfcode8681'>return nData;</div>
<p>Regards, chronohh</p>
]]></description>
        	        	<pubDate>Tue, 09 Nov 2010 18:03:58 +0200</pubDate>
        </item>
        <item>
        	<title>chronohh on Loosing Locale Information in Formatters with inline editing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/loosing-locale-information-in-formatters-with-inline-editing#p20708</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/loosing-locale-information-in-formatters-with-inline-editing#p20708</guid>
        	        	<description><![CDATA[<p>I just found the problem by myself:</p>
</p>
<p>in file "grid.inlineedit.js" at row number 27 there is the following code:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit119' value='Select Code' data-codeid='sfcode119' /></p>
<div class='sfcode' id='sfcode119'>try {<br />&#160;&#160;&#160; tmp =&#160; $.unformat(this,{rowId:rowid, colModel:cm[i]},i);<br />} catch (_) {<br />&#160;&#160; &#160;tmp = $(this).html();<br />}</div>
<p>Just throwing this stuff away and writing</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5883' value='Select Code' data-codeid='sfcode5883' /></p>
<div class='sfcode' id='sfcode5883'>tmp = $(this).html();</div>
<p>is the solution for us.</p>
<p>Do you see any problems with that?</p>
<p>I suggest, that unformatting the values should happen for sending data to the server, not in display situation.</p>
<p>Kind Regards,</p>
<p>chronohh</p>
]]></description>
        	        	<pubDate>Tue, 09 Nov 2010 17:29:52 +0200</pubDate>
        </item>
        <item>
        	<title>chronohh on Loosing Locale Information in Formatters with inline editing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/loosing-locale-information-in-formatters-with-inline-editing#p20695</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/loosing-locale-information-in-formatters-with-inline-editing#p20695</guid>
        	        	<description><![CDATA[<p>Hi there</p>
</p>
<p>jqGrid 3.8.1 is set up with a column formatted as "currency", loaded with german locale.</p>
</p>
<p>Server sends the following data: "3097.23".</p>
<p>jqGrid displays this value as "3.097,23 &#8364;". This is right!</p>
<p>But after clicking on the cell for starting inline editing, this cell get transformed back to "3097.23".</p>
</p>
<p>Maybe there comes another bug from a previous version alive: <a href="http://www.trirand.com/blog/?page_id=393/bugs/inlineedit-formatter-bug" rel="nofollow" target="_blank"><a href="http://www.trirand.com/blog/?p" rel="nofollow">http://www.trirand.com/blog/?p</a>.....matter-bug</a></p>
</p>
<p>kind regards</p>
<p>chronohh</p></p>
]]></description>
        	        	<pubDate>Mon, 08 Nov 2010 14:29:22 +0200</pubDate>
        </item>
</channel>
</rss>