<?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: extending onSelectRow with additional event parameter</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/extending-onselectrow-with-additional-event-parameter</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/extending-onselectrow-with-additional-event-parameter/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on extending onSelectRow with additional event parameter</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/extending-onselectrow-with-additional-event-parameter#p25540</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/extending-onselectrow-with-additional-event-parameter#p25540</guid>
        	        	<description><![CDATA[<p>Hello Oleg,</p>
<p>This is a good idea. Will be added.</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 28 Dec 2011 13:39:28 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on extending onSelectRow with additional event parameter</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/extending-onselectrow-with-additional-event-parameter#p25534</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/extending-onselectrow-with-additional-event-parameter#p25534</guid>
        	        	<description><![CDATA[<p>Hello Tony,</p>
<p>I miss <strong>e</strong> (event) parameter in the <strong>onSelectRow</strong> callback function/events of jqGrid. The parameter exist in many other important callbacks/events: <strong>beforeSelectRow</strong>, <strong>onCellSelect</strong>, <strong>ondblClickRow</strong>, <strong>onRightClickRow</strong>.</p>
<p>The simplest use case for me which could use the event parameter could be placing the focus at the start of the inline editing on the cell which was clicked by the user. See <a href="http://www.ok-soft-gmbh.com/jqGrid/SimpleLocalGridWithInlineEditingFocus2.htm" target="_blank">the demo</a> from <a href="http://stackoverflow.com/a/6538102/315935" target="_blank">the answer</a>&#160;which uses <strong>ondblClickRow</strong>. To be able to implement the same in case of starting of the inline editing on the simple click of the cell one need have the <strong>e</strong>&#160;(event) parameter in the&#160;<strong>onSelectRow</strong>&#160;callback.</p>
<p>The parameter <strong>e</strong>&#160;(event) will be <em>optional</em>, because not all places in the code which use <strong>setSelection</strong> will be called by the user interection.</p>
<p><a href="http://www.ok-soft-gmbh.com/jqGrid/jquery.jqGrid-4.3.1/src/grid.base-events.js" target="_blank">Here</a> is the modified version of grid.base.js where the changes are made. The file includes additionally some very simple changes which introduces new jQuery events which can be very practical for writing plugins to jqGrid. I will explain the suggestion in the separate feature request. If you Tony want I can separate the changes and post there as pull request in github.</p>
<p>Best regards<br />Oleg</p>
]]></description>
        	        	<pubDate>Mon, 26 Dec 2011 22:43:18 +0200</pubDate>
        </item>
</channel>
</rss>