This is a migrated thread and some comments may be shown as answers.

Closing all other branches after open/toggle node

2 Answers 24 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Erik
Top achievements
Rank 2
Erik asked on 07 Sep 2012, 11:26 AM
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 Answers, 1 is accepted

Sort by
0
Kate
Telerik team
answered on 07 Sep 2012, 01:11 PM
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.
0
Erik
Top achievements
Rank 2
answered on 07 Sep 2012, 01:36 PM
Thanks! I can't believe I missed that property :)

Erik
Tags
TreeView
Asked by
Erik
Top achievements
Rank 2
Answers by
Kate
Telerik team
Erik
Top achievements
Rank 2
Share this question
or