I have a slickgrid that, in the 'onMouseEnter' event, I do the following:
- change the underlying css for the row in question
- call grid.invalidateRow()
- call grid.render()
These latter two calls are necessary for the new css classes to be reflected. However, I then need to capture the onMouseLeave event, and it is not fired when I move my mouse away from the cell (or row), presumably because the call to invalidate/render has placed a new DOM element under my mouse, and it's no longer the one I initially "entered."
So I have two questions:
- Is there another way to have the new css classes for a given cell be rendered without calling invalidateRow/render?
- If not, is there another way to do this and still have the onMouseLeave event fired?