<?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: How to edit a currency cell?</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-edit-a-currency-cell</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/how-to-edit-a-currency-cell/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on How to edit a currency cell?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-edit-a-currency-cell#p16087</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-edit-a-currency-cell#p16087</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Just define the unformat function and everthing will be OK.</p>
<p><a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:custom_formatter#creating_common_formatter_function" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>.....r_function</a></p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 31 Mar 2010 17:42:00 +0300</pubDate>
        </item>
        <item>
        	<title>jackysee on How to edit a currency cell?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-edit-a-currency-cell#p15946</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-edit-a-currency-cell#p15946</guid>
        	        	<description><![CDATA[<p>Do you mean that the formatter must be &#39;currency&#39; for it to work properly? I tried to do something like:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5165' value='Select Code' data-codeid='sfcode5165' /></p>
<div class='sfcode' id='sfcode5165'>$.extend(true, $.fn.fmatter, {<br /><span style=&#34;white-space:pre&#34;> </span>amount: function(cellvalue, options, rowdata){<br /><span style=&#34;white-space: pre;&#34;><span style=&#34;white-space:pre&#34;> </span></span>var op = $.extend(true, {}, options, { <br /><span style=&#34;white-space:pre&#34;> </span>currency: {<br /><span style=&#34;white-space: pre;&#34;> </span>decimalSeparator:&#39;.&#39;, decimalPlaces:2, suffix:&#39;&#39;, prefix:&#39;, <span style=&#34;white-space:pre&#34;> </span>thousandsSeparator:&#39;,&#39;, defaultValue:&#39;&#38;nbsp;&#39;<br /><span style=&#34;white-space: pre;&#34;> </span>}<br /><span style=&#34;white-space: pre;&#34;> </span>});<br /><span style=&#34;white-space: pre;&#34;><span style=&#34;white-space: pre;&#34;> </span>o</span>ptions.colModel.align = &#39;right&#39;;<br /><span style=&#34;white-space: pre;&#34;> </span>return $.fn.fmatter.currency(cellvalue, op, rowdata);<br /><span style=&#34;white-space: pre;&#34;> </span>}<br />});</div>
</p>
<p>so that I can simply use formatter:&#39;amount&#39; in colModel. I need to also specify an unformatter for cell edit?</p></p>
]]></description>
        	        	<pubDate>Thu, 25 Mar 2010 10:15:59 +0200</pubDate>
        </item>
        <item>
        	<title>tony on How to edit a currency cell?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-edit-a-currency-cell#p15940</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-edit-a-currency-cell#p15940</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>According to your code, this field should not contain "$" as prefix, since you set a prefix to be empty string.</p>
<p>Also the conversion should be done automatically if you use the build in formatters, so please look at your code again.</p>
</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 25 Mar 2010 09:42:45 +0200</pubDate>
        </item>
        <item>
        	<title>jackysee on How to edit a currency cell?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-edit-a-currency-cell#p15902</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-edit-a-currency-cell#p15902</guid>
        	        	<description><![CDATA[<p>I have a colModel</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9709' value='Select Code' data-codeid='sfcode9709' /></p>
<div class='sfcode' id='sfcode9709'>{<br /><span style=&#34;white-space: pre;&#34;> </span>name:&#39;cost&#39;,index:&#39;cost&#39;, width:100, formatter:&#39;currency&#39;,<span style=&#34;white-space: pre;&#34;><span style=&#34;white-space: pre;&#34;> </span>formatoptions:{decimalSeparator:&#39;.&#39;, thousandsSeparator: &#39;,&#39;, decimalPlaces: 2, prefix: &#39;&#39;, defaultValue:&#39;&#39;},<span style=&#34;white-space: normal;&#34;><span style=&#34;white-space: pre;&#34;> </span>editable:true, edittype:&#39;text&#39;, editoptions: {size:30, maxlength: 22}, editrules:{number:true}<br />}</span></span></div>
<p><span style="white-space: pre;"><span style="white-space: normal;">It can shows &#39;$1,400.20&#39; at the table cell. But when I click edit using the modal form will also fill in &#39;$1,400.20&#39; in the input field. How can I control such that it will display &#39;1400.20&#39;?</span></span></p>
]]></description>
        	        	<pubDate>Tue, 23 Mar 2010 05:32:23 +0200</pubDate>
        </item>
</channel>
</rss>