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

RC0 telerik:HierarchicalDataTemplate

2 Answers 111 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
NS
Top achievements
Rank 1
NS asked on 07 Oct 2008, 06:28 AM
Hi,
I just upgraded to the RC0 version of the Silverlight controls.
I get a compile error on telerik:HierarchicalDataTemplate (calling from a treeview),
The HeaderTemplate attribute is missing. How can I set the header ?

Thanks,
Nicolas

2 Answers, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 07 Oct 2008, 06:42 AM
Hi Nicolas,

Yes - this is a breaking change. Check this online example:
http://demos.telerik.com/silverlight/#Examples/TreeView/TemplateSelector

this example also can be helpful:
http://demos.telerik.com/silverlight/#Examples/TreeView/DataBinding

Basically you can set the template now directly:
<telerik:HierarchicalDataTemplate x:Key="Division" ItemsSource="{Binding Teams}">  
    <TextBlock Text="{Binding Name}" Foreground="Green" FontStyle="Italic"/>  
</telerik:HierarchicalDataTemplate> 
 


Kind regards,
Valentin.Stoychev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
NS
Top achievements
Rank 1
answered on 07 Oct 2008, 06:53 AM
Thanks for you quick answser. This solved my problem.

Nicolas
Tags
TreeView
Asked by
NS
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
NS
Top achievements
Rank 1
Share this question
or