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

Multiple Collections for One Item

2 Answers 38 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Kevin Hendriks
Top achievements
Rank 1
Kevin Hendriks asked on 16 Dec 2011, 02:48 PM
Hello,

I have been breaking my head over the following problem and I do not get it working fully.

I have a collection of Fase.
The Fase object Has three collectlions namely
Software
Training
Consultancy.

I want my treeview to look like this
Fase1
-Software
--Item1
--Item2
-Training
--Item1
--Item2
-Consultancy
--Item1
--Item2
Fase1
-Software
--Item1
--Item2
-Training
--Item1
--Item2
-Consultancy
--Item1
--Item2


These also all need different template but I am not able to figure out to get the first part working
Fase1
-Software
-Training
-Consultancy

Is it even possible what I try to create with my current dataobjects.

2 Answers, 1 is accepted

Sort by
0
Accepted
Petar Mladenov
Telerik team
answered on 19 Dec 2011, 03:08 PM
Hello Kevin Hendriks,

 Please examine the attached project where a basic solution could be found. We have Users that have Collections of Rights and LogEntries which are united in single collection so that a TemplateSelector could be applied. Please let us know if the suggested approach satisfies you.

Best wishes,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Kevin Hendriks
Top achievements
Rank 1
answered on 19 Dec 2011, 03:40 PM
Hello,

I have a slightly different solution now. But the idea is the same.

Thanks for the help

With kind regards,
Kevin
Tags
TreeView
Asked by
Kevin Hendriks
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Kevin Hendriks
Top achievements
Rank 1
Share this question
or