Organizational Chart - TreeViewItem with multiple parents

2 posts, 0 answers
  1. Joel Palmer
    Joel Palmer avatar
    164 posts
    Member since:
    May 2009

    Posted 03 Nov 2010 Link to this post

    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?
  2. Hristo
    Hristo avatar
    352 posts

    Posted 09 Nov 2010 Link to this post

    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,
    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 R3 2016 release webinar banner
Back to Top