Hi,
This is my sample for listing departments as Option list & employees as child items of each department. For departments, the option list is visible. However, i don't the optionlist for the child items. Please let me know how can i achieve this.
PS: I have attached the screen shot of the below code. I want the radio button to be visible only for "RND" and "Sales" items.
This is my sample for listing departments as Option list & employees as child items of each department. For departments, the option list is visible. However, i don't the optionlist for the child items. Please let me know how can i achieve this.
PS: I have attached the screen shot of the below code. I want the radio button to be visible only for "RND" and "Sales" items.
<
Grid
x:Name
=
"LayoutRoot"
Background
=
"White"
>
<
Grid.Resources
>
<
local:DepartmentCollection
x:Key
=
"departments"
></
local:DepartmentCollection
>
<
DataTemplate
x:Key
=
"EmployeeTemplate"
>
<
TextBlock
FontWeight
=
"ExtraBold"
Text
=
"{Binding EmployeeName}"
></
TextBlock
>
</
DataTemplate
>
<
telerik:HierarchicalDataTemplate
x:Key
=
"DepartmentTemplate"
ItemsSource
=
"{Binding Employees}"
ItemTemplate
=
"{StaticResource EmployeeTemplate}"
>
<
TextBlock
Text
=
"{Binding DepartmentName}"
></
TextBlock
>
</
telerik:HierarchicalDataTemplate
>
</
Grid.Resources
>
<
telerik:RadTreeView
IsOptionElementsEnabled
=
"True"
ItemsSource
=
"{StaticResource departments}"
Name
=
"rdTreeView"
ItemTemplate
=
"{StaticResource DepartmentTemplate}"
ItemsOptionListType
=
"OptionList"
telerik:StyleManager.Theme
=
"Summer"
IsTriStateMode
=
"True"
>
</
telerik:RadTreeView
>
</
Grid
>