<?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: setting this for formatters and unformatters</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/setting-this-for-formatters-and-unformatters</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/feature-request/setting-this-for-formatters-and-unformatters/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on setting this for formatters and unformatters</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/setting-this-for-formatters-and-unformatters#p26014</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/setting-this-for-formatters-and-unformatters#p26014</guid>
        	        	<description><![CDATA[<p>Hello Oleg,</p>
<p>I want to merge the formatter requests, but I do not want to make all the cahnges that you have made, since they contain changes that I do not want to be included.</p>
<p>Will see how to do these.</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sun, 26 Feb 2012 12:38:05 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on setting this for formatters and unformatters</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/setting-this-for-formatters-and-unformatters#p26012</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/setting-this-for-formatters-and-unformatters#p26012</guid>
        	        	<description><![CDATA[<p>Hello Tony,</p>
<p>I posted before the suggesting in GitHub, but because it was combined with other suggestions I decide to describe the changes in the feature request.</p>
<p>In many cases it is very helpfull to have <strong>this</strong> initialized to the DOM element of the grid (the main table). It allows to access all parameters of jqGrid per <strong>this.p</strong> and access all other <em>grid specific settings</em> which are sometimes helpful. In many places of the code one do this already, but in some other places (espacially in <em>grid.formedit.js</em> and <em>grid.common.js</em>) it will be not hold. So the <strong>this</strong> will be initialized to global <strong>window</strong> which get no helpful information.</p>
<p>I suggest to make the coresponding changes in the code of jqGrid. As the first step I collect <a href="https://github.com/OlegKi/jqGrid/commit/1f4f0afc6466ec0c81968ea3743b9c03d3b5abf9" target="_blank">here</a> the changes to set <strong>this</strong> for formatters and unformatters. Additionally in <a href="https://github.com/OlegKi/jqGrid/commit/7255f67b2172494c4732d017136e3d714e857a11" target="_blank">the simple change</a> I suggest to include <strong>colName</strong> additional property in the options of formetter. The property can be helpful for example if one constructs <strong>title</strong>&#160;attribute (tooltips) in the formatter.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Sat, 25 Feb 2012 13:23:35 +0200</pubDate>
        </item>
</channel>
</rss>