skip navigation
Telerik UI for Silverlight
Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
NEW
: Design Kits for Figma
Online Training
Document Processing Library
Embedded Reporting for web and desktop
Web
Kendo UI
UI for jQuery
UI for Angular
UI for React
UI for Vue
UI for Blazor
UI for ASP.NET Core
UI for ASP.NET MVC
UI for ASP.NET AJAX
Mobile
UI for .NET MAUI
UI for Xamarin
Document Management
Telerik Document Processing
Desktop
UI for .NET MAUI
UI for WinUI
UI for WinForms
UI for WPF
Reporting & Mocking
Telerik Reporting
Telerik Report Server
Telerik JustMock
Automated Testing
Test Studio
Test Studio Dev Edition
CMS
Sitefinity
UI/UX Tools
ThemeBuilder
Design System Kit
Debugging
Fiddler
Fiddler Everywhere
Fiddler Classic
Fiddler Jam
FiddlerCap
FiddlerCore
Free Tools
VB.NET to C# Converter
Testing Framework
View all products
Overview
Docs & Support
Support and Learning
Support Resources
Docs
Demos
Forums
Videos
Release History
Submit a Ticket
Shopping cart
Login
Contact Us
Contact Us
close mobile menu
Telerik Forums
/
UI for Silverlight
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
Add a comment
Submit comment
Cancel
2 Answers
, 1 is accepted
Sort by
Score
Date
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.
Add a comment
Submit comment
Cancel
0
NS
Top achievements
Rank 1
answered on
07 Oct 2008,
06:53 AM
Thanks for you quick answser. This solved my problem.
Nicolas
Add a comment
Submit comment
Cancel
Answer this question
Drag and drop files here or
browse
to attach...
Browse
for files to attach...
Supported file types: PNG, JPG, JPEG, ZIP, RAR, TXT. Max total file size - 20MB.
Submit answer
Cancel
Tags
TreeView
Asked by
NS
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
NS
Top achievements
Rank 1
Share this question
or
Copy link