Closing all other branches after open/toggle node

3 posts, 0 answers
  1. Erik
    Erik avatar
    9 posts
    Member since:
    Jul 2012

    Posted 07 Sep 2012 Link to this post

    Hi all,

    The WPF Rad TreeView has a property called 'IsSingleExpandPath' to force a treeview to only open one path at a time. If you open a node on a new path, all the other nodes that are on a different path will be closed.
    Is there a similar feature for the ASP TreeView without doing messy things in javascript?

    Erik
  2. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 07 Sep 2012 Link to this post

    Hi Erik,

    You can use the SingleExpandPath property of the RadTreeView or if you need to expand only one node per level with the RadTreeView control you will need to use some javascript code as explained and exemplified in the following help article - Expand only one Node per level

    Greetings,
    Kate
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Erik
    Erik avatar
    9 posts
    Member since:
    Jul 2012

    Posted 07 Sep 2012 Link to this post

    Thanks! I can't believe I missed that property :)

    Erik
Back to Top