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

Initializing RadTreeNodes to expanded

3 Answers 102 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
Kevin Meyer
Top achievements
Rank 1
Kevin Meyer asked on 29 Apr 2008, 08:48 PM
What's the recommended solution for expanding a tree view when bound to an object data source.  The created nodes are collapsed by default and I don't see a way to change the default behavior, nor do I see any events indicating when a node is added

3 Answers, 1 is accepted

Sort by
0
Kiril
Telerik team
answered on 01 May 2008, 01:16 PM
Hi Kevin Meyer,

Thank you for writing.

Currently, there's no way to achieve this behavior. However, our plans for Q2 2008 include making the RadTreeNodeCollection observable, so you'll be able to expand a node just after it is added. For the time being, you can traverse the tree view structure after it has been bound and expand the desired nodes.

If you have any further questions, please contact us.

Kind regards,
Kiril
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
MNP
Top achievements
Rank 1
answered on 13 Nov 2009, 07:41 PM
Hi,

Has there been any change to this? I'm currently databinding and it seems that I can't expand the tree to say the 2nd level. The only thing that seems to work is the ExpandAll.

Thanks

-Matt
0
Victor
Telerik team
answered on 18 Nov 2009, 12:02 PM
Hi Matt,

Thank you for the question.

If you are looking for a way to expand nodes on a particular level you can use the commands that RadTreeView provides. You should use the NodeExpandCollapseCommand in particular.
I am afraid that we have not yet added the ability to react on a node being added directly to the Nodes collection.

Please write again if you need further assistance.

Best wishes,
Victor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Treeview
Asked by
Kevin Meyer
Top achievements
Rank 1
Answers by
Kiril
Telerik team
MNP
Top achievements
Rank 1
Victor
Telerik team
Share this question
or