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

Allowing a node to be a child of more than one parent - These columns don't currently have unique values.

1 Answer 48 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Delicious!
Top achievements
Rank 1
Delicious! asked on 23 Jul 2009, 06:58 PM
I'm utilizing the RadTreeView control to display hierarchical data and one of my requirements is that a node can be a child of more than one parent.

Sample data from the dB would be something like:

ID    ParentID    Description
1      NULL          Parent
2      1                 ChildA
3      1                 ChildB
3      2                 ChildB

So ChildB is both child of ChildA and Parent.  When I attempt to bind the TreeView to my dataSource, I get the following error:  "These columns don't currently have unique values."

Is there a way I can utilize the TreeView w/ the set of data above?


1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 24 Jul 2009, 06:25 AM
Hello Ohrange,

According to the principles of hierarchical databinding there is now way for a child to have two parents - every node can have only one parent.

Best regards,
Yana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
TreeView
Asked by
Delicious!
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or