This question is locked. New answers and comments are not allowed.
I'm having this issue as well. The ItemSource for the treeview is an Office with a list of Children offices so I want to use the same template.
In that article is suggested not setting ItemTemplate property. However, that's the only way I can get it to display the parent correctly. Also, the children are not displaying at all. Below is my template and treeview settings. Am I missing a binding somewhere or do I have some property not set/not set correctly? It's probably something simple.
Thanks for your help!!
In that article is suggested not setting ItemTemplate property. However, that's the only way I can get it to display the parent correctly. Also, the children are not displaying at all. Below is my template and treeview settings. Am I missing a binding somewhere or do I have some property not set/not set correctly? It's probably something simple.
Thanks for your help!!
<
DataTemplate
x:Key
=
"OrgUnitsItemTemplate"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
telerik:Label
Content
=
"{Binding ParentOrgUnit.Description}"
/>
</
StackPanel
>
</
DataTemplate
>
<
telerik:RadTreeView
Name
=
"uxOrgUnits"
SelectionMode
=
"Extended"
IsLineEnabled
=
"True"
ItemsOptionListType
=
"CheckList"
IsOptionElementsEnabled
=
"True"
IsDragDropEnabled
=
"False"
IsRootLinesEnabled
=
"True"
IsTriStateMode
=
"True"
ItemTemplate
=
"{StaticResource OrgUnitsItemTemplate}"
>
</
telerik:RadTreeView
>