More in this section

Forums / Designing & Styling / VerticalTree and only current node is expanded

VerticalTree and only current node is expanded

2 posts, 0 answered
  1. Andre
    Andre avatar
    23 posts
    07 Feb 2008
    07 Feb 2012
    Link to this post

    I found this nice sample for an own VertcalTree .

    I tried to change this to have ever only the current node expanded and collaps any other nodes but I can't make it work.
    Also what I can't understand is that after initial all nodes are expanded.
    Because of: e.Node.NavigateUrl.Equals(currentNodeUrl) only the current node should be expanded - right?
    So what code expand also the other nodes?


  2. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    30 Oct 2017
    10 Feb 2012
    Link to this post


    You can easily achieve such functionality(and even extend it) by wrapping our SitefinitySiteMapDataSource control (the one that we're using for binding our navigation controls) and a RadTreeView inside a user control. I've prepared a sample user control for you (attached to this reply, along with a short video demonstrating the control functionality), which should duplicate the desired functionality. If there's anything else we can help you with, or you need any additional information regarding the user control, please do not hesitate to get back to us.

    Boyan Barnev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered