Thank you for giving us additional information about your scenario. Now we can better understand it and a good option for implementing it is to use a Converter
to convert your data into the hierarchy you need to display in the RadTreeView
This scenario is specific because you have three different collections in the Account
object and the HierarchicalDataTemplate
can display only one collection. This is why you'll need a Converter to create a new ObservableCollection
populated with your data (
IList<Order> Orders and
. In addition to this you need to display these collections as "grand-children" of an Account
node so you'll have to make sure that the Converter
will return a collection of hierarchical data.
And as each collection in the Account
item is of different type, you can use an ItemTemplateSelector
to apply a different template on the different types of nodes.
Please take a look at the attached project and see if it works for you. Don`t hesitate to ask if you have any questions.
All the best,
Pavel R. Pavlov
the Telerik team