For this particular scenario, you will have to use a DataTemplateSelector when determining the DataTemplate for the sub-items. I've attached a sample project demonstrating one possible solutin to this scenario. Have a look at it and let me know if it helps. Also, if you have further questions or comments on the topic, do not hesitate to contact us. I'd be glad to further assist you.
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items.