<?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: Can Formatters be merged? i.e. Custom Formatter and Predefined</title>
	<link>http://www.trirand.com/blog/?page_id=393/discussion/can-formatters-be-merged-i-e-custom-formatter-and-predefined</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/discussion/can-formatters-be-merged-i-e-custom-formatter-and-predefined/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>learnerplates on Can Formatters be merged? i.e. Custom Formatter and Predefined</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/can-formatters-be-merged-i-e-custom-formatter-and-predefined#p20361</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/can-formatters-be-merged-i-e-custom-formatter-and-predefined#p20361</guid>
        	        	<description><![CDATA[<p>I&#39;m using the date formatter but also want to append characters to some of the cells, to do this I&#39;m using &#160;custom formatter.</p>
<p>I don&#39;t yet see an efficient way todo both.</p>
</p>
<p>Alternatively is there any way to reuse the formatoptions found in the predefined formatter?</p>
<p>I&#39;d like a combination of the following formatters:</p>
</p>
<p>{ name: &#39;Amount&#39;, width: 30, sortable: true, align: &#39;center&#39;, formatter: &#39;currency&#39;, formatoptions: { decimalPlaces: 2, prefix: "$ "} },</p>
<p>and&#160;</p>
<p>{name: &#39;Amount&#39;, width: 30, sortable: true, align: &#39;center&#39;, formatter: negativeNumberFormatter },</p>
<p>function negativeNumberFormatter(cellvalue, options, rowObject) {</p>
<p>&#160;&#160; &#160; &#160; &#160;return cellvalue.replace("-", "($") + ")"; &#160;&#160;</p>
<p>}</p></p>
]]></description>
        	        	<pubDate>Tue, 19 Oct 2010 15:06:55 +0300</pubDate>
        </item>
</channel>
</rss>