Welcome Guest Search | Active Topics | Sign In | Register

How to auto expand a TreeNode on mouse over Options
eo_support
Posted: Wednesday, October 21, 2009 10:29:13 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Use the following code to automatically expand a TreeNode on mouse over:

Code: JavaScript
function on_item_mouseover(e, info)
{
    var node = info.getItem();
    if (node)
        node.setExpanded(true);
}


Code: HTML/ASPX
<eo:TreeView ClientSideOnItemMouseOver="on_item_mouseover" ....>
.....
</eo:TreeView>


Note the TreeView's ClientSideOnItemMouseOver is set to the name of the JavaScript function "on_item_mouseover" so that this function gets called whenever mouse hovers over a TreeNode. The function then calls the TreeView's client side JavaScript API (setExpanded) to expand the hovering node.

You can find more details about how to use our client side API here:

http://doc.essentialobjects.com/library/1/clientapi_howto.aspx

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.