Forums

Skip Navigation LinksHome / Developer Network / Forums / Sitefinity: Designing & Styling > VerticalTree and only current node is expanded

VerticalTree and only current node is expanded

  • Andre avatar

    Posted on Feb 7, 2012 (permalink)

    Hi,

    I found this nice sample for an own VertcalTree http://www.sitefinity.com/devnet/forums/sitefinity-4-x/general-discussions/navigation-control-verticaltree-with-rollover.aspx .

    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?

    Thanks

    Andre

    Reply

  • Boyan Barnev Boyan Barnev admin's avatar

    Posted on Feb 10, 2012 (permalink)


    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.

    Regards,
    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

    Reply

Skip Navigation LinksHome / Developer Network / Forums / Sitefinity: Designing & Styling > VerticalTree and only current node is expanded