VerticalTree and only current node is expanded - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

VerticalTree and only current node is expanded

  • VerticalTree and only current node is expanded
  • Hi,

    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?



  • Hi,

    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