This is a migrated thread and some comments may be shown as answers.

Treeview expand on hover

3 Answers 225 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Alan
Top achievements
Rank 1
Alan asked on 14 Jun 2012, 07:07 AM
I have a radtrrview. How can I get the entire treeview expanded on hover of the root node.

3 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 14 Jun 2012, 09:03 AM
Hi Alan,

Try the following Javascript to achieve your scenario.

JS:
<script type="text/javascript" >
    function OnClientMouseOver(sender, args)
    {
        var nodes = sender.get_allNodes();
        for (var i = 0; i < nodes.length; i++)
        {
            nodes[i].expand();
        }
    }
</script>

Thanks,
Princy.
0
Shree
Top achievements
Rank 1
answered on 07 Aug 2014, 11:45 AM
How can we expand/collapse tree node on mouseover on +/- imgaes in rad tree view?
0
Aneliya Petkova
Telerik team
answered on 08 Aug 2014, 09:59 AM
Hi Shree,

I already answered your question in this forum thread. In order to avoid duplications, let's continue with our communication there.
Please review my answer and let me know how it goes.

Regards,
Aneliya Petkova
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
TreeView
Asked by
Alan
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Shree
Top achievements
Rank 1
Aneliya Petkova
Telerik team
Share this question
or