Multiple Parent IDs on DataBind

2 posts, 0 answers
  1. b33fy
    b33fy avatar
    3 posts
    Member since:
    Nov 2008

    Posted 29 Sep 2010 Link to this post

    Hi Everyone,

    I have a scenario where the IDs are unique but can have multiple Parents.

    for e.g.  A person can be part-time in one Branch and part-time in another Branch

    Person ID   Person            BranchID   Branch
    1                Peter Williams  1               City
    1                Peter Williams  5               Woodhill
    2                Steven Hen      5               Woodhill

    Branches
          ---- City
                     ------ Peter Williams ID 1
          ---- Woodhill
                     ------ Peter Williams ID 1
                     ------ Steven Hen ID 2

    I am getting the error "These columns don't currently have unique values"  which I understand but just wondering what my options are to cater for my scenario?

    The Treeview is for selection only so if someone knows a person is working under a particular Branch they can expand that Branch and select the person.  No need to add/update/delete nodes.

    Any suggestions will be much appreciated

    Thanks

    B
  2. Yana
    Admin
    Yana avatar
    4897 posts

    Posted 30 Sep 2010 Link to this post

    Hello,

    Please check this help article about hierarchical databinding.

    Best regards,
    Yana
    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
Back to Top