How to get the HTML element being hovered over?

0
0

I have an HtmlPanel with some HTML in it.

html

When I hover over foo2 element, I would like to perform a task (popup some info).
I can do this easily when an element is clicked via HtmlPanel.ElementClick event and its HtmlPanelElementClickArgs parameter.

However, that doesn’t work with hover. I tried MouseEnter, MouseLeave and MouseHover events and those just pass EventArgs without any information about what is underneath.

How can I implement hover functionality?

P.S. colleague tried filing support ticket on github, but no one seems to be answering there.

  • You must to post comments
0
0

Hi Matthew,

This was our answer to your support ticket:

Wisej doesn’t know anything about the content of the HTML. The click you get is because there is a generic js handler in the HtmlPanel control in Wisej that captures the event and fires it on the server. There is nothing in HTML or any other framework that wires js events to the server.

To achieve this you have to attach a JS handler and fire a server event.

I have attached a sample to demonstrate the process.

Best,

Alaa

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.