updating the databinding source after loaded event

2 posts, 0 answers
  1. Arvind
    Arvind avatar
    2 posts
    Member since:
    Sep 2011

    Posted 30 Sep 2011 Link to this post

    I am using hierachial example , but I populate the data in viewmodel only after the treeview has been load.

    sequnce of events _treeview loaded , then getdata from database and assisgn the value to the property.

    if I want to GetItemByPath what event should I listen to before I start using the method.  

  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 05 Oct 2011 Link to this post

    Hello Arvind,

     As I managed to understand , you are making a ViewModel wrappers of the classes from your database and the bind the RadTreeView to the ViewModel. If you want to use the GetItemByPath or BringIntoView methods, you have to ensure that the tree's root level data is loaded, in other words the root RadTreeViewItems are already generated. You can use the ItemPrepared event which fires when a RadTreeViewItem is created. Please let us know if this helps you or not.

    Regards,
    Petar Mladenov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top