Hello,
i'm going to build a RadContextMenu and set the ItemSource with the Columns of a RadGridView.
The task is to show a list of names of columns and a CheckBox in front of them to set the Visibility of columns.
But i can not show the CheckBox in my project.
I followed Binding to Dynamic Data and tried the code in definition of RadGridView like this:
i'm going to build a RadContextMenu and set the ItemSource with the Columns of a RadGridView.
The task is to show a list of names of columns and a CheckBox in front of them to set the Visibility of columns.
But i can not show the CheckBox in my project.
I followed Binding to Dynamic Data and tried the code in definition of RadGridView like this:
<telerik:RadContextMenu.ContextMenu> <telerik:RadContextMenu Opened="RadContextMenu_Opened" Opening="RadContextMenu_OnOpening"> <telerik:RadContextMenu.ItemContainerStyle> <Style TargetType="telerik:RadMenuItem"> <Setter Property="Visibility" Value="{Binding IsReorderable, Converter={StaticResource BooleanToVisibilityConverter}}"/> <Setter Property="Header" Value="{Binding Header}"/> <Setter Property="Icon" Value="{Binding IsVisible}"/> <Setter Property="IconTemplate"> <Setter.Value> <DataTemplate> <CheckBox IsChecked="{Binding}"/> </DataTemplate> </Setter.Value> </Setter> </Style> </telerik:RadContextMenu.ItemContainerStyle> </telerik:RadContextMenu></telerik:RadContextMenu.ContextMenu>Is there something wrong in my code?
Thank for any help.
Ivan