<?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: cell formatting on edit</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/cell-formatting-on-edit</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/cell-formatting-on-edit/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on cell formatting on edit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/cell-formatting-on-edit#p7377</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/cell-formatting-on-edit#p7377</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>If you use the buil in jqGrid formatter:&#39;currency&#39; jqGrid will do the job for you if you edit the value. Since I suppose you value is formatted server side you can look here in order to do the things.</p>
<p><a href="http://www.trirand.com/blog/?page_id=18/help/custom-format-function-and-edit-actions/page-1" rel="nofollow" target="_blank"><a href="http://www.trirand.com/blog/?p" rel="nofollow">http://www.trirand.com/blog/?p</a>.....ons/page-1</a></p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sun, 21 Jun 2009 07:00:19 +0300</pubDate>
        </item>
        <item>
        	<title>Drew on cell formatting on edit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/cell-formatting-on-edit#p7342</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/cell-formatting-on-edit#p7342</guid>
        	        	<description><![CDATA[<p>Well, I got it working for me.&#160; Obviously a callback solution would be much more elegant, but here&#39;s what I did:</p>
<p>$(&#39;#FCGrid&#39;).jqGrid({<br />&#160;&#160; ...<br />&#160;&#160; onSelectRow: function(id) {<br />&#160; &#160; &#160; var _cellOne = $(&#39;#FCGrid&#39;).getCell(id, &#39;ColumnName&#39;);<br />&#160;&#160;&#160;&#160;&#160; $(&#39;#FCGrid&#39;).editRow(id, false);<br />&#160;&#160;&#160;&#160;&#160; document.getElementById(id + &#39;_ColumnName&#39;).value = _cellOne.replace(/\\$&#124;\\,/g, &#39;&#39;);<br />&#160;&#160; }<br />});</p>
<p>I had been trying with a jQuery selector rather than document.getElementById and it wasn&#39;t working.&#160; For some reason, doc.getEl does work though.&#160; Hope this is helpful for others =]</p>
]]></description>
        	        	<pubDate>Fri, 19 Jun 2009 10:17:36 +0300</pubDate>
        </item>
        <item>
        	<title>Marcel Karras on cell formatting on edit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/cell-formatting-on-edit#p7337</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/cell-formatting-on-edit#p7337</guid>
        	        	<description><![CDATA[<p>Yes, I&#39;m interested in a solution, too. 🙂</p>
]]></description>
        	        	<pubDate>Fri, 19 Jun 2009 05:30:52 +0300</pubDate>
        </item>
        <item>
        	<title>Drew on cell formatting on edit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/cell-formatting-on-edit#p7329</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/cell-formatting-on-edit#p7329</guid>
        	        	<description><![CDATA[<p>Bump ^_^</p>
]]></description>
        	        	<pubDate>Thu, 18 Jun 2009 16:41:59 +0300</pubDate>
        </item>
        <item>
        	<title>Drew on cell formatting on edit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/cell-formatting-on-edit#p7299</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/cell-formatting-on-edit#p7299</guid>
        	        	<description><![CDATA[<p>I have a cell displaying a currency value, such as "$102.75".&#160; When I begin editing the row, I&#39;d like to change the text of the input to "102.75" -- without the dollar sign.&#160; What would be the best route to accomplish this?</p>
<p>Currently, I&#39;m trying: on row select, I&#39;ll get the original value.&#160; Then call editRow.&#160; Then set the text.&#160; However, when I get the textbox and set its text, it doesn&#39;t appear to actually change.</p>
</p>
<p>I guess that could also serve as a feature request, it&#39;d be nice to have a callback function for this - perhaps included in the editrules.</p>
]]></description>
        	        	<pubDate>Wed, 17 Jun 2009 20:22:29 +0300</pubDate>
        </item>
</channel>
</rss>