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

2 posts, 0 answers
  1. Delicious!
    Delicious! avatar
    21 posts
    Member since:
    Feb 2007

    Posted 23 Jul 2009 Link to this post

    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?


  2. Yana
    Admin
    Yana avatar
    4985 posts

    Posted 24 Jul 2009 Link to this post

    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.
Back to Top