There are basically two ways to initialize a hierarchical template - with HierarchicalDataTemplates or with DataTemplates and a TemaplateSelector. You can read more here
and I've also attached a sample project which shows both approaches so you could examine it and see what works best for you.
If you have more questions feel free to ask.
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>