<?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: ondblClickRow - add event to calling parameters</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/ondblclickrow-add-event-to-calling-parameters</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/ondblclickrow-add-event-to-calling-parameters/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>DRHansen on ondblClickRow - add event to calling parameters</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/ondblclickrow-add-event-to-calling-parameters#p10254</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/ondblclickrow-add-event-to-calling-parameters#p10254</guid>
        	        	<description><![CDATA[<p>Tony,</p>
</p>
<p>&#160;&#160;&#160; Thank you sir!&#160; I&#39;m using it  already.</p>
</p>
<p>DRHansen</p>
]]></description>
        	        	<pubDate>Tue, 29 Sep 2009 11:54:30 +0300</pubDate>
        </item>
        <item>
        	<title>tony on ondblClickRow - add event to calling parameters</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/ondblclickrow-add-event-to-calling-parameters#p10239</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/ondblclickrow-add-event-to-calling-parameters#p10239</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thanks. Good idea. Added in GitHub. Also I add this to onrightClick event</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 29 Sep 2009 11:11:52 +0300</pubDate>
        </item>
        <item>
        	<title>DRHansen on ondblClickRow - add event to calling parameters</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/ondblclickrow-add-event-to-calling-parameters#p10189</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/ondblclickrow-add-event-to-calling-parameters#p10189</guid>
        	        	<description><![CDATA[<div id="post10189">
<p>Hi Tony,</p>
<p>What would you think about adding the event to the parameters passed to user-defined functions for ondblClickRow:</p>
<p>&#160;&#160;&#160;&#160; &#8226; grid.base.js ~line 1238 in <strong>jqGrid version 3.5.3</strong></p>
<p><input type='button' class='sfcodeselect' name='sfselectit2494' value='Select Code' data-codeid='sfcode2494' /></p>
<div class='sfcode' id='sfcode2494'>&#160;&#160;&#160; &#160;&#160;&#160; if( ondblClickRow ) {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $(this).dblclick(function(<span style="color: #ff0000;"><strong>e</strong></span>) {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; td = (e.target);<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; ptr = $(td,ts.rows).parents(&#8221;tr.jqgrow&#8221;);<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; if($(ptr).length === 0 ){return false;}<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; ri = ptr[0].rowIndex;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; ci = !$(td).is(&#39;td&#39;) ? $(td).parents(&#8221;td:first&#8221;)[0].cellIndex : td.cellIndex;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; if(isMSIE) {ci = $.jgrid.getAbsoluteIndex(ptr[0],ci);}<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; ts.p.ondblClickRow($(ptr).attr(&#8221;id&#8221;),ri,ci, <strong><span style="color: #ff0000;">e</span></strong>);<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; return false;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; });<br />&#160;&#160;&#160; &#160;&#160;&#160; }</div>
</p>
<p>&#160;&#160;&#160;&#160; Then, in  ondblClickRow: in the jqGrid definition, we could harvest the shiftKey and other goodies from the event &#8211;</p>
<p><input type='button' class='sfcodeselect' name='sfselectit3366' value='Select Code' data-codeid='sfcode3366' /></p>
<div class='sfcode' id='sfcode3366'>&#160; ondblClickRow:&#160;&#160;&#160; function(rowId, iRow, iCol, <strong><span style="color: #ff0000;">e</span></strong>) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if(<strong><span style="color: #ff0000;">e</span></strong>.shiftKey) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; addRowBasedOnThisRow();&#160;&#160; <span style="color: #339966;">// Use this row&#39;s values as a template for add</span><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; } else {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; editThisRow();<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160; },</div>
<p>&#160;&#160;&#160; It might make sense for  onRightClickRow: as well.&#160; Others?</p>
<p>Thanks,</p>
<p>DRHansen</p>
</div>
]]></description>
        	        	<pubDate>Sun, 27 Sep 2009 08:11:07 +0300</pubDate>
        </item>
</channel>
</rss>