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

Multiple Parent IDs on DataBind

1 Answer 59 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
b33fy
Top achievements
Rank 1
b33fy asked on 30 Sep 2010, 01:00 AM
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

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 30 Sep 2010, 03:19 PM
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
Tags
TreeView
Asked by
b33fy
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or