PDA

View Full Version : Why is there no cellmouseup event for Ext.grid.GridPanel?



bhajj
1 Jul 2008, 4:36 PM
Hi All -

I am experimenting with Ext.grid.Gridpanel for the first time and am getting some pretty great results. However, one question I have that seems confuse to me:

Why is there no cellmouseup event? I am sure that there is a reason for it but....

I guess the class can just be extended, right, but it seems like pretty useful functionality not not have been included originally.

Thanks y'all!

marcolz
26 Apr 2010, 2:36 AM
It looks like there's actually some support. If you listen to the 'mouseup' event there's a second hidden (not documented) parameter. It contains the DOM of the cell the mouse was on when the event was triggered:


mouseup: function(e, cell) {
console.log(cell);
}

>> <div class="x-grid3-cell-inner x-grid3-col-6" unselectable="on">...</div>