Welcome Guest Search | Active Topics | Sign In | Register

How to expand Treeview nodes on mouse over Options
ChrisD
Posted: Sunday, June 6, 2010 10:06:40 PM
Rank: Newbie
Groups: Member

Joined: 5/4/2010
Posts: 5
Can expand nodes on mouse click but want to use mouse over.
eo_support
Posted: Monday, June 7, 2010 8:45:27 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You will need to handle the TreeView's ClientSideOnItemMouseOver, it will be something like this:

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


Code: JavaScript
function mouse_over_handler(e, info)
{
    var treeNode = info.getItem();
    treeNode.setExpanded(true);
}


Thanks
ChrisD
Posted: Monday, June 7, 2010 5:02:56 PM
Rank: Newbie
Groups: Member

Joined: 5/4/2010
Posts: 5
Excellent, works a treat.


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.