On exploring the code-snippet you have provided, I am not able to see anything wrong with it. The only thing I may suggest is to make sure that you are setting the right reference towards System.Windows.Controls.DataTemplateSelector. However, in order to provide you with a more appropriate solution, I would need more information about your project and its settings.
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