DataSource Binding

2 posts, 0 answers
  1. Robert Anthony
    Robert Anthony avatar
    1 posts
    Member since:
    Oct 2008

    Posted 22 Oct 2008 Link to this post

    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
  2. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 23 Oct 2008 Link to this post

    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.
Back to Top