<?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: reducing resources needed for formatter: 'actions'</title>
	<link>http://www.trirand.com/blog/?page_id=393/discussion/reducing-resources-needed-for-formatter-actions</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/reducing-resources-needed-for-formatter-actions/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on reducing resources needed for formatter: 'actions'</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/reducing-resources-needed-for-formatter-actions#p22424</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/reducing-resources-needed-for-formatter-actions#p22424</guid>
        	        	<description><![CDATA[<p>Hello Tony,</p>
<p>during answering on <a href="http://stackoverflow.com/questions/5303471/browser-memory-usage-comparison-inline-onclick-vs-using-jquery-bind/5305904#5305904" target="_blank">one question</a> on the stackoverflow I thought one more time about altarnatives in the implementations of &#39;showlink&#39; and &#39;actions&#39; formatters. The &#39;actions&#39; formatter and in the most usage forms the &#39;showlink&#39; formatter use <strong>binding to every cell</strong> of the corresponding grid column. On the other side there already one &#39;<strong>click&#39;</strong> event handler bound to the whole table (see the corresponding part of the source code <a href="https://github.com/tonytomov/jqGrid/blob/master/js/grid.base.js#L2189" target="_blank">here</a>). In <a href="http://www.ok-soft-gmbh.com/jqGrid/CellClick.htm" target="_blank">the demo</a> to my anser I have shown how one can use <a href="/jqgridwiki/doku.php?id=wiki%3aevents#list_of_events" target="_blank">onCellSelect</a> or <a href="/jqgridwiki/doku.php?id=wiki%3aevents#list_of_events" target="_blank">beforeSelectRow</a> event handler to get the same information which one need. Probably one can goes the same way in the implementation of &#39;showlink&#39; and &#39;actions&#39; formatters? One should only modify code of the grid.base.js to make possible to subscribe &#39;click&#39; event from inside of jqGrid: from the formatters. Then the `$.fn.fmatter.rowactions` will be called directly or indirectly from the &#39;click&#39;&#160;event handler bound to the whole table in grid.base.js.</p>
<p>What do you think about this?</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Tue, 15 Mar 2011 12:53:34 +0200</pubDate>
        </item>
</channel>
</rss>