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

2 posts, 0 answers
  1. nguyen
    nguyen avatar
    5 posts
    Member since:
    Oct 2014

    Posted 18 Nov 2014 Link to this post

    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.
  2. Dimitar
    Dimitar avatar
    2853 posts

    Posted 21 Nov 2014 Link to this post

    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.


    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.

Back to Top