Self-referencing Hierarchy: Problem with adding a sibling

2 posts, 0 answers
  1. Angeli
    Angeli avatar
    29 posts
    Member since:
    Apr 2011

    Posted 24 Jun 2011 Link to this post

    Greetings, Telerik!

    I used the example given in this blog about Self-reference hierarchy with Telerik TreeView for Silverlight . I have already created my own DataItem collection retrieved from the database and it's working fine when converted to TreeView. But once I add a child to a treeviewitem that already has a child, the item added doesn't appear in the treeview but we know that it is added in the collection since we experimented with a message box showing all the items in the collection. Same thing happens when adding a sibling to the treeviewitem. I hope you can provide me with an example of adding a child and a sibling using a the self-referencing hierarchy.

    I hope you can reply as soon as possible. I would appreciate it very much. Thank you!
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 29 Jun 2011 Link to this post

    Hello Angeli,

    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.

    All the best,
    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
  3. DevCraft banner
Back to Top