Hi..
I need to programmatically create Treeviewitems based upon the data programmatically... I can create the RadTreeViewItem and it's properties. But how do I add a ItemTemplate and DataTemplate programmatically? ... add the stack panel... thanks again!!
I need to programmatically create Treeviewitems based upon the data programmatically... I can create the RadTreeViewItem and it's properties. But how do I add a ItemTemplate and DataTemplate programmatically? ... add the stack panel... thanks again!!
<telerikNavigation:RadTreeViewItem IsLoadOnDemandEnabled="True" x:Name="InBox" Header="Inbox Emails" DefaultImageSrc="Images/4Inbox.png" OptionType="CheckList" >
<telerikNavigation:RadTreeViewItem.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Vertical">
<TextBlock Text="{Binding NAME}" FontSize="10" />
</StackPanel>
</DataTemplate>
</telerikNavigation:RadTreeViewItem.ItemTemplate>
</telerikNavigation:RadTreeViewItem>