Treeview expand on hover

4 posts, 1 answers
  1. Alan
    Alan avatar
    10 posts
    Member since:
    May 2012

    Posted 14 Jun 2012 Link to this post

    I have a radtrrview. How can I get the entire treeview expanded on hover of the root node.
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 14 Jun 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Shree
    Shree avatar
    4 posts
    Member since:
    Aug 2014

    Posted 07 Aug 2014 in reply to Princy Link to this post

    How can we expand/collapse tree node on mouseover on +/- imgaes in rad tree view?
  5. Aneliya Petkova
    Admin
    Aneliya Petkova avatar
    207 posts

    Posted 08 Aug 2014 Link to this post

    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.

     
Back to Top