View Full Version : How to get column index of a cell on mouse move

8 Feb 2012, 9:53 AM
When the user moves the mouse over a cell I'm trying to get the column index and eventually the record of the data store. I've attempted to use "itemmouseenter" listener however that is only beining fired when the mouse is moved to a different row and NOT to a different column within the same row.

I tried to add selType: 'cellmodel' but no luck. The "itemmouseenter" still only fires when the mouse it moved over a different row.

Is it possible to get the column that the mouse is currently over? If so am I on the right track or do I need to try a different approach?

Thanks, Scott.

8 Feb 2012, 11:16 AM
Take a look at the method processItemEvent in Ext.view.Table:


That method usually fires the cell events but notice there's a bit in the middle that deliberately avoids mouse movement events. The more generic uievent is fired though, so perhaps you could use that.

8 Feb 2012, 11:47 AM
Thanks a bunch! That did the trick with the uievent.