RC0 telerik:HierarchicalDataTemplate

3 posts, 0 answers
  1. NS
    NS avatar
    189 posts
    Member since:
    Jan 2007

    Posted 07 Oct 2008 Link to this post

    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. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 07 Oct 2008 Link to this post

    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.
  3. NS
    NS avatar
    189 posts
    Member since:
    Jan 2007

    Posted 07 Oct 2008 Link to this post

    Thanks for you quick answser. This solved my problem.

    Nicolas
Back to Top