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

updating the databinding source after loaded event

1 Answer 180 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Arvind
Top achievements
Rank 1
Arvind asked on 30 Sep 2011, 09:11 PM
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.  

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 05 Oct 2011, 09:26 AM
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 >>

Tags
TreeView
Asked by
Arvind
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or