Add Child in Self-reference radtreeview

2 posts, 0 answers
  1. Vincent
    Vincent avatar
    34 posts
    Member since:
    Apr 2011

    Posted 27 Jun 2011 Link to this post

    Hi Telerik! Good Day!

    I was able to successfully bind from the database to the radtreeview. What I did is, the data being retrieved in the database is added in an itemcollection. Then, I let treeview.datacontext = itemcollection, and it was successful. The problem now is when I add a data in treeitemcollection. If a parent item in treeview has initially no child, then the data will be added under that parent, but if the parent item in the treeview has already a child, then, the child is not reflected in the treeview. But, if we check the itemcollection, it is really added. I hope you can respond on this! Thanks!
  2. Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 29 Jun 2011 Link to this post

    Hello Vincent,

    I am not sure how you add an item to the collection but I attached a sample project where the RadTreeView controls is used to display self-referencing hierarchy and a RadContextMenu is added to each item that allows adding new items or deleting a node from the RadTreeView Items collection.

    Please have a look at it and let me know if it helps or if I am missing something.

    Best wishes,
    Tina Stancheva
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top