Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
110
MouseEnterElement and MouseLeaveElement firing more then once.
posted

Hi,

I'm using the MouseEnterElement and MouseLeaveElement events of the UltraWinGrid to show a custom popup screen. The cell I'm interested in has an image in it. if I enter the element a larger preview of the image is shown.

I finally got this to work but the MouseEnterElement and MouseLeaveElement are firing 2 times, once when hover over the picture in the cell and once when enter the rest of the empty cell on the right.

Is there a way to prevent the MouseEnterElement and MouseLeaveElement events from reaction on the image inside the cell?

Kind Regards

Ibbe.

 

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi Ibbe,

    It sounds to me like the event is firing because you are entering a different element within the cell.

    What you probably need to do is store the last cell that was entered and then if it gets entered again because the mouse moved into a different element within the same cell, just ignore it.

Children