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

Help... RadPanel with Listbox

2 Answers 52 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
figueiredorj
Top achievements
Rank 1
figueiredorj asked on 15 Sep 2011, 06:28 PM
Hi.
I am trying to achieve something that is giving me such a headache...

I would like to set a collection of items that have a collection of items.
The top items I do believe that the best representation would be RadPanel.
For the sub collection I would like to set it as a List.

Take the example classes:

I have a collection let's say Fleets; and each Fleet would have a collection of Vehicles;
So radpanel collection is binded to Fleets;
Each item template would be a listbox of vehicles.

I have been trying to accomplish this but with no success until now. Could some one aid me on this? 
By the way, I am using PRISM and MVVM if it matters...

2 Answers, 1 is accepted

Sort by
0
Accepted
Zarko
Telerik team
answered on 20 Sep 2011, 04:05 PM
Hi Figueiredorj,
In order to achieve this you'll need to use the HierarchicalDataTemplate. You can read more about it here.
For further references could you please examine the attached project and if you have more questions feel free to ask.

Regards,
Zarko
the Telerik team

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

0
figueiredorj
Top achievements
Rank 1
answered on 20 Sep 2011, 04:17 PM
Thanks Zarko.
Actually I had already figured it out but It could be a further reference to someone else...


Tags
PanelBar
Asked by
figueiredorj
Top achievements
Rank 1
Answers by
Zarko
Telerik team
figueiredorj
Top achievements
Rank 1
Share this question
or