<?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: Access to Cell Node From Formatter</title>
	<link>http://www.trirand.com/blog/?page_id=393/discussion/access-to-cell-node-from-formatter</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/access-to-cell-node-from-formatter/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>footcha on Access to Cell Node From Formatter</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/access-to-cell-node-from-formatter#p21591</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/access-to-cell-node-from-formatter#p21591</guid>
        	        	<description><![CDATA[<p>+1 for this feature request.</p>
<p>jqGrid is a great component.</p>
<p>I would really like to see in jqGrid API an option for custom formater to be the function receiving curren cell DOM.</p>
<p>Example of usage:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2204' value='Select Code' data-codeid='sfcode2204' /></p>
<div class='sfcode' id='sfcode2204'>
<p>function customFormatter(cell)</p>
<p>{</p>
<p>&#160;&#160;&#160; $(cell).click(function() {</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; // do some advanced stuff here</p>
<p>&#160;&#160;&#160; })</p>
<p>}</p>
</p>
</div>
<p>The point is to be able to attach to javascript events. I want to avoid the formatter to render html content that contains function names. I want my fuction to be anonymous.</p>
]]></description>
        	        	<pubDate>Sun, 09 Jan 2011 15:59:13 +0200</pubDate>
        </item>
        <item>
        	<title>KamiQuasi on Access to Cell Node From Formatter</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/access-to-cell-node-from-formatter#p21379</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/access-to-cell-node-from-formatter#p21379</guid>
        	        	<description><![CDATA[<p>This question has been asked in a number of ways, but I don&#39;t find the answers to be quite what I am looking for:</p>
<p>"Is there a way to change a cell&#39;s properties within a custom formatter?"</p>
<p>What I really want to know, though, is if there is a way to add or access a specific cell&#39;s HTML properties at the time the formatter is being run. The issue I have is that I want to change the class attribute of a cell based on it&#39;s formatted value, but to draw the row, and then go back and process each cell and their values seems to be redundant and very inefficient.</p>
</p>
<p>Is there some way of interacting with the rowObject or a specific cell while in a Custom Formatter (either through setCell or manually) that will allow me to change the HTML result that is written to the DOM for the specific cell it is attached to?&#160;</p>
<p>It seems as though there must be a way to access the jqGrid object within the formatter before the DOM is written, but while a formatter is being executed on a cell. Has anyone successfully done this?</p>
]]></description>
        	        	<pubDate>Wed, 22 Dec 2010 17:20:25 +0200</pubDate>
        </item>
</channel>
</rss>