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

Organizational Chart - TreeViewItem with multiple parents

1 Answer 231 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Joel Palmer
Top achievements
Rank 2
Joel Palmer asked on 04 Nov 2010, 12:29 AM
I would like to use the TreeView control to represent an Org Chart.  Question is, how do I represent the weird situation where a person reports to 2 people?  Can I set up a TreeViewItem to have multiple nodes point at it?

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 09 Nov 2010, 10:10 AM
Hi Joel Palmer,

The RadTreeViewItem can have only one parent. So if you want to represent the situation where person reports to several people you may duplicate that person and set it as a child to every one that it reports to. Of course you may need to do some changes to your data model depending of the view point you want to represent. Meaning that when you want to list all people you should remove the duplications, but when you want to represent a hierarchical organizational chart you may need to duplicated some items.

Hope this helps. Please let us know if you need more help.

Kind regards,
Hristo
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
Joel Palmer
Top achievements
Rank 2
Answers by
Hristo
Telerik team
Share this question
or