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

Self-referencing Hierarchy: Problem with adding a sibling

1 Answer 47 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Angeli
Top achievements
Rank 1
Angeli asked on 24 Jun 2011, 06:21 AM
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!

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 29 Jun 2011, 03:11 PM
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
Tags
TreeView
Asked by
Angeli
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or