I have two tables in a database (See attached photo EntityRelationship.png). The table called Areas is self-referencing and the table called Items references Areas. The data in each table is shown in AreaTableData.png and ItemTableData.png. The hierarchy should look like this:
Note that Item 4 in the hierarchy is a child of Area 2.
I am attempting to bind this hierarchy to a RadTreeView. I believe that I will need to utilize a HierarchicalDataTemplate, DataTemplateSelector and HierarchyConverter in order to make this happen, but I am unsure of how they should work together. Any guidance would be greatly appreciated.
Thanks in advance,
Kevin
- Area 1
- Area 1 – 1
- Item 1
- Item 2
- Area 1 – 2
- Item 3
- Area 1 – 1
- Area 2
- Area 2 – 1
- Item 5
- Item 6
- Area 2 – 2
- Item 4
- Area 2 – 1
Note that Item 4 in the hierarchy is a child of Area 2.
I am attempting to bind this hierarchy to a RadTreeView. I believe that I will need to utilize a HierarchicalDataTemplate, DataTemplateSelector and HierarchyConverter in order to make this happen, but I am unsure of how they should work together. Any guidance would be greatly appreciated.
Thanks in advance,
Kevin