This question is locked. New answers and comments are not allowed.
I have the following currently in my View xaml code. However here we have a fixed hierarchy in this case but want to create a custom hierarchy instead. therefore we can do that only if we can create the HierarchicalDataTemplate(defined below) programmatically. I have been unable to find reliable example thus far. IS this possible and if so could some one point me to any telerik documentation on how one can do this?
I apologize if this is not the correct location for posting this thread.
<DataTemplate x:Key="dtDocumentName">
<TextBlock Text="{Binding Path=Value.DocumentName}"/>
</DataTemplate>
<HierarchicalDataTemplate x:Key="hdtDocumentType" ItemsSource="{Binding Path=Items}" ItemTemplate="{StaticResource dtDocumentName}">
<TextBlock Text="{Binding Path=Name}" />
</HierarchicalDataTemplate>
<HierarchicalDataTemplate x:Key="hdtDocumentCategory" ItemsSource="{Binding Path=Items}" ItemTemplate="{StaticResource hdtDocumentType}">
<TextBlock Text="{Binding Path=Name}" />
</HierarchicalDataTemplate>
<HierarchicalDataTemplate x:Key="hdtDocumentRoot" ItemsSource="{Binding Path=Items}" ItemTemplate="{StaticResource hdtDocumentCategory}">
<TextBlock Text="{Binding Path=Name}" />
</HierarchicalDataTemplate>