<
telerik:RadTreeViewItem
x:Name
=
"tviWsaSchoolYear"
Header
=
"WSA School Year"
ItemsSource
=
"{Binding WsaSchoolYearFilters}"
ItemsOptionListType
=
"OptionList"
ItemTemplate
=
"{StaticResource WsaSchoolYearTreeViewTemplate}"
Visibility
=
"{Binding Path=sfv.sfvWsaSchoolYearFlag, Converter={StaticResource visibilityConverter}}"
/>
Is there any way to disable the checkbox on those items that have radio buttons and keep it in the same TreeView?
Setting up the container binding:
<
telerikControls:ContainerBindingCollection
x:Key
=
"TreeViewBindingsCollection"
>
<
telerikControls:ContainerBinding
PropertyName
=
"CheckState"
Binding
=
"{Binding CheckState, Mode=TwoWay}"
/>
</
telerikControls:ContainerBindingCollection
>
setting up the template:
<
telerikControls:HierarchicalDataTemplate
x:Key
=
"WsaSchoolYearTreeViewTemplate"
ItemsSource
=
"{Binding fltWsaSchoolYear_Result}"
telerikControls:ContainerBinding.ContainerBindings
=
"{StaticResource TreeViewBindingsCollection}"
>
<
TextBlock
Text
=
"{Binding SchoolYear}"
FontSize
=
"11"
/>
</
telerikControls:HierarchicalDataTemplate
>
For the treeview
<
telerik:RadTreeViewItem
x:Name
=
"tviWsaSchoolYear"
Header
=
"WSA School Year"
ItemsSource
=
"{Binding WsaSchoolYearFilters}"
ItemsOptionListType
=
"OptionList"
ItemTemplate
=
"{StaticResource WsaSchoolYearTreeViewTemplate}"
Visibility
=
"{Binding Path=sfv.sfvWsaSchoolYearFlag, Converter={StaticResource visibilityConverter}}"
/>
Thanks.
Lisa