<?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: Using named functions with jqgrid events</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/using-named-functions-with-jqgrid-events</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/using-named-functions-with-jqgrid-events/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Rumen[Trirand] on Using named functions with jqgrid events</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/using-named-functions-with-jqgrid-events#p11073</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/using-named-functions-with-jqgrid-events#p11073</guid>
        	        	<description><![CDATA[</p>
<p>You can hook them by reference with setGridParam&#160;</p>
</p>
<p>var grid = jQuery("#jqGridID");</p>
<p>grid.setGridParam({ afterInsertRow: doSomething });</p>
</p>
<p>&#160;function doSomething(param1, param2, ...) {</p>
<p>&#160;&#160; &#160; alert("here");</p>
<p>&#160;&#160;}</p>
</p>
<p>This by the way will also work in the original grid definition, e.g.</p>
<p>...</p>
<p>afterInsertRow: doSomething,</p>
<p>....</p>
]]></description>
        	        	<pubDate>Mon, 26 Oct 2009 09:10:41 +0200</pubDate>
        </item>
        <item>
        	<title>diptendu on Using named functions with jqgrid events</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/using-named-functions-with-jqgrid-events#p11070</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/using-named-functions-with-jqgrid-events#p11070</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>The common way of writing handler code for jqgrid events is to use</p>
<p>anonymous functions, for example,</p>
</p>
<p>afterInsertRow : function(rowid,aData)<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; jQuery(&#8221;#list4&#8243;).setCell(rowid, &#39;note&#39;, &#8220;&#60;img src = &#39;add.jpg&#39;&#62;&#8221;);<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; //alert(&#8221;hello&#8221;);<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; },</p>
</p>
<p>How can I use named functions instead of named functions, for example,</p>
</p>
<p>afterInsertRow : HandleInsertRow( x, y)</p>
</p>
<p>Regards,</p>
<p>Diptendu</p>
</p>
<p>PS:&#160;</p>
</p>
<p>afterInsertRow : function(rowid,aData) { HandleInsertRow( rowid, aData) }</p>
</p>
<p>is NOT a solution for me. <img class="spSmiley" style="margin:0" title="Cool" src="/blog/wp-content/forum-smileys/sf-cool.gif" alt="Cool" /></p></p>
]]></description>
        	        	<pubDate>Mon, 26 Oct 2009 06:09:01 +0200</pubDate>
        </item>
</channel>
</rss>