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

DataSource Binding

1 Answer 101 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Robert Anthony
Top achievements
Rank 1
Robert Anthony asked on 23 Oct 2008, 02:30 AM
Hello,

Is there a way to determine the event after binding?

I am using HierarchicalDataSource : ObservableCollection when binding.

Ulitimately, I am trying to programmatically expand all nodes after the treeview binding. And I can't seem to find the correct event to fire the expandall()

Am I on the wrong path?

Please advice.

Thanks

1 Answer, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 23 Oct 2008, 09:08 AM
Hello Robert Anthony,

In the Loaded event of the RadTreeView you can check the status of the ItemContainerGenerator.

If the status is different than ContainersGenerated you can attach to the RadTreeView.ItemContainerGenerator -> StatusChanged event.

Once the Status of the ItemContainerGenerator become ContainersGenerated you can use the ExpandAll method.

Please let us know if you need more help on that.

Greetings,
Valentin.Stoychev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
TreeView
Asked by
Robert Anthony
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Share this question
or