Hi, I am trying to create a treeview to display the following class:
in the hierarchydata template I have the following:
How do I make the treeview use the same datatemplate for all the items?
class foo
{
public string
name;
public list<
foo
> children
}
public List<
foo> theFooToDisplay = new List<
foo>
in the hierarchydata template I have the following:
<telerik:HierarchicalDataTemplate x:Key="foohdt"
ItemsSource="{Binding theFooToDisplay }">
<TextBlock Text="{Binding Name}" />
</telerik:HierarchicalDataTemplate>
<telerik:RadTreeView ItemsSource="{Binding theFooToDisplay }"
ItemTemplate="{StaticResource foohdt}" />
Could I get some help with the template?
thanks!
Jas
How do I make the treeview use the same datatemplate for all the items?