<?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: Custom Cell Renderers</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/custom-cell-renderers</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/custom-cell-renderers/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>jonnycattt on Custom Cell Renderers</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-cell-renderers#p2474</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-cell-renderers#p2474</guid>
        	        	<description><![CDATA[<p>ugggg... ignore that! i see the error of my ways.</p>
]]></description>
        	        	<pubDate>Fri, 10 Oct 2008 13:58:42 +0300</pubDate>
        </item>
        <item>
        	<title>jonnycattt on Custom Cell Renderers</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-cell-renderers#p2473</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-cell-renderers#p2473</guid>
        	        	<description><![CDATA[<p>Hey Tony,</p>
<p>&#160; I added this to my grid:</p>
<p>afterInsertRow: function(rowid,rowdata){<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; console.log(arguments);&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; formatCell(rowid,rowdata);<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; }</p>
<p>But in the arguments, i&#39;m getting an empty array for rowdata. rowid passes in fine though.</p>
<p>ideas?</p></p>
]]></description>
        	        	<pubDate>Fri, 10 Oct 2008 13:52:23 +0300</pubDate>
        </item>
        <item>
        	<title>jonnycattt on Custom Cell Renderers</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-cell-renderers#p2466</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-cell-renderers#p2466</guid>
        	        	<description><![CDATA[<p>thanks Tony. I&#39;ll give it a shot!</p>
]]></description>
        	        	<pubDate>Fri, 10 Oct 2008 08:09:14 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Custom Cell Renderers</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-cell-renderers#p2464</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-cell-renderers#p2464</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>It is not direct cell renderer but requires some little code.</p>
<p>Imagine we must known the input and output format for that cell -</p>
<p>(what we expect and what we put)</p>
<p>The reason that I do not put such renderer is the complexity and at first time the speed, but jqGrid have a lot of methods to do that.</p>
<p>use afterInsertRow event again with setCell method and you can do what you want here.</p>
<p>afterInsertRow : fiunction (rowid, adata) {</p>
<p>if( some_condition ) {</p>
<p>jQuery("#gridid").setCell(rowid,&#39;cellname&#39;,myformater(adata.cellname));</p>
<p>}</p>
<p>}</p>
<p>function myformater(input) {</p>
<p>// do something here</p>
<p>return new_formated_value</p>
<p>}</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 10 Oct 2008 07:59:10 +0300</pubDate>
        </item>
        <item>
        	<title>jonnycattt on Custom Cell Renderers</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-cell-renderers#p2463</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-cell-renderers#p2463</guid>
        	        	<description><![CDATA[<p>I&#39;ve worked a lot with the EXTJS grid, and one of the things I&#39;ve come to love is the "renderer" functionality for a cell. This provides an easy way to do custom cell formatting. Basically, in the columnmodel, you specify a renderer. this is a javascript function that you write.</p>
<p>the grid, when it sees a custom renderer is attached, passes the contents of the grid through the renderer function, passing in the cell value, the json object for that entire row, and some other stuff.</p>
<p>in this way, you can do dollar formatting, turn 1/0 into yes/no, and all kinds of other goodness.</p>
<p>Does jqGrid have this kind of custom cell formatting functionality?</p>
<p>thanks.</p>
<p>Marc</p>
]]></description>
        	        	<pubDate>Fri, 10 Oct 2008 07:43:03 +0300</pubDate>
        </item>
</channel>
</rss>