View Full Version : [4.1 B1] Get grid's cell on context click
5 Jan 2012, 11:33 AM
In Ext 3 I'd use the gridpanel's cellclick, cellcontextmenu, and celldblclick events and use those to evaluate which column was clicked. I didnt' see those events in 4.0.x and was hoping they'd be introduced in the grid enhancements/fixes in 4.1. I'm not seeing them, though.
Is there a good way to get the column clicked (or more to the point context-clicked) in 4.1?
5 Jan 2012, 12:08 PM
The grid panel has the event itemcontextmenu
5 Jan 2012, 1:12 PM
It looked like the itemcontextclick event furnishes just the:
Didn't look like the column/cell index was a param, but maybe I'm overlooking it?
5 Jan 2012, 9:56 PM
I believe the cell events do exist they just aren't documented:
From looking at the code it seems that the view fires a number of events prefixed with 'beforecell' and 'cell' (do a quick search for those strings in ext-all-debug). I don't think they all get relayed by the grid though, seems just cellclick and celldblclick are passed through.
You should mention this on the documentation bugs thread if you want to get them added to the docs:
6 Jan 2012, 9:59 AM
Ok. I added it to the documentation bugs thread you linked to. I'm also going to input a feature request for either cellcontextclick like in 3.x or I'd be good with itemclick, dblclick, contextclick, et al to have a reference to the column element and index like the cell events had in 3.x.
EDIT: request added - http://www.sencha.com/forum/showthread.php?171511-4.1-cellcontextclick-in-gridpanel&p=709284#post709284
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.