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

TreeView using binding list error when adding new items to binding list

1 Answer 79 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
nguyen
Top achievements
Rank 1
nguyen asked on 18 Nov 2014, 03:24 PM
Hello,
I using bindinglist with Self Reference to bind data a treeview,
When adding a new object to the bindinglist, the treeview GUI appears all nodes was duplicated (likes 2 trees)
When adding a node to the current node of the tree, the binding list was added new item of course this item doesn't have enough meta data for an object.

Is there any way to add a object to bindinglist and the treeview GUI display correctly?

Thanks in advanced.
Nguyen

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 21 Nov 2014, 01:22 PM
Hello Nguyen,

Thank you for writing.

If your data source has correct structure and the added items have correct Child and Parent members the tree view will display the self reference hierarchy correctly. I have created a small project to show you how this can be achieved.  

I hope this will be useful.

Regards,
Dimitar
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Treeview
Asked by
nguyen
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or