Edit this page

OnClientMouseOver

The OnClientMouseOver client-side event occurs when the mouse cursor passes over a node.

The event handler receives parameters:

  1. The TreeView instance that fired the event.

  2. Event arguments with functions:

  • get_node() retrieves a reference to the node.

  • get_domEvent() retrieves a DOM event object of the mouse movement.

The example below retrieves text of the node the mouse is passing over and displays the text in a div.

<telerik:RadTreeView RenderMode="Lightweight" ID="RadTreeView1" runat="server" OnClientMouseOver="ClientMouseOver">
</telerik:RadTreeView>
<br />
<div id="myDiv" style="width: 489px; height: 100px">
</div>
function ClientMouseOver(sender, eventArgs) {
    var node = eventArgs.get_node();
    var myDiv = document.getElementById("myDiv");
    myDiv.innerHTML = "OnClientMouseOver: " + node.get_text();
}

See Also