We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Hover over reset

Hi again. Is there a way to reset the hover-over event without leaving the databoundgrid control? Ideally we would like the hover over to reset when leaving the current (hover) cell. Right now, we hae to move the mouse off the control before the hover-over will re-fire. Thanks for the swift and extensive help this week - it looks like we will be able to send a product demo to our customer tomorrow because of quality of your support.

2 Replies

CB Clay Burch Syncfusion Team September 13, 2002 09:45 PM UTC

> Hi again. Is there a way to reset the hover-over event without leaving the databoundgrid control? Ideally we would like the hover over to reset when leaving the current (hover) cell. Right now, we hae to move the mouse off the control before the hover-over will re-fire. > Thanks for the swift and extensive help this week - it looks like we will be able to send a product demo to our customer tomorrow because of quality of your support.


CB Clay Burch Syncfusion Team September 13, 2002 09:53 PM UTC

Sorry for the delay in getting to this question. I don't know of a way to reset the hover timer. But you can simulate this functionality by handling the grid's MouseMove event and adding your own timer. In the MouseMove event, you keep track of the cell that the mouse is over. When this cell changes, you enable the timer so it will fire in your desired hover delay. If the timer fires, then that is your hover event. In the timer event, you do your hover code and disable the timer. It will remain disabled until the next mousemove resets it (when the mouse moves over a different cell). Attached is a sample project that implements this scheme. Now if you don't want to have any delay, you can do without the timer, and just note when the MouseMove event hits a new cell as your 'hover event'.

Loader.
Live Chat Icon For mobile
Up arrow icon