I'm not sure if I understand correctly your requirements. But it seems to me that you'd like to build a RadTreeView
where on one level you can have different business types displayed. If this is the case, you'll only need to make sure that you can create a collection of all root items and then use a custom DataTemplateSelector
to apply a different DataTemplate
for each data type.
I prepared a sample solution demonstrating this approach. Please note that I create a collection of objects whenever I need to make sure that different type of items will be added in that collection - in the sample solution this approach is used to declare the MainViewModel
collection as well as the Children
collection in the Employee
I hope this project will get you started on your task. And if you have any further questions, please let us know.
the Telerik team