This is a migrated thread and some comments may be shown as answers.

HierquicalDatemplate Problem

1 Answer 43 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Valerio
Top achievements
Rank 1
Valerio asked on 24 Aug 2010, 11:16 AM
Hi there!

I'm searching for a way to make a treeView with two types os objects:

A. 
  |_ D.
  |     |_F.
  |     |_3
  |_ E.
  |_ 1
  |_ 2
B.
C.

Character are Files Type (Keys), and numbers as objects (Values)
I can't find a way to mix up the two types in the same Hineritance.
If someone have a solution? Please tell me.

Best Regards

Valerio

1 Answer, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 26 Aug 2010, 06:00 PM
Hello Valerio,

Yes, this is possible by using an ItemTemplateSelector:

http://www.telerik.com/help/silverlight/radtreeview-templating-item-template-selector.html

It is a class that returns a template (HierarchicalDataTemplate) for each item - you can base your logic on the item type on any other condition you like.

Best wishes,
Miroslav
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? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TreeView
Asked by
Valerio
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Share this question
or