PDA

View Full Version : grid cell mouseover event with rowIndex and colIndex



ttbgwt
6 Aug 2012, 3:35 PM
How can I listen to cell mouseover events within a grid and capture the rowIndex and colIndex of the cell that is being mouseovered? Thanks!

I did this in 3.4 prior...


grid.on('mouseover', function (e, t) {
var me = this;


var rowIndex = me.getView().findRowIndex(t);
var cellIndex = me.getView().findCellIndex(t);


if (rowIndex !== false && cellIndex !== false) {
var cell = me.getView().getCell(rowIndex, cellIndex);

evant
6 Aug 2012, 4:23 PM
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.view.View-event-itemmouseenter
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.view.View-event-itemmouseleave

ttbgwt
23 Aug 2012, 8:19 AM
But those events are for row listeners and not cell listeners?

margozzi
16 Feb 2013, 2:50 PM
Did you ever get a better response?

ukjbrown
21 Mar 2013, 8:20 AM
+1 for needing a solution...

Been searching the net for about an hour to try to solve this so far with no luck.