I have the following GridView with the questionable checkbox column. Is there any way to add a command to the checkbox IsChecked property, like an event?
The TestCommand is implemented in the viewmodel and it is working well with a button.
<
telerik:RadGridView
x:Name
=
"SelectedStrategyGroup1_Adjustments_GV"
Width
=
"233"
Height
=
"214"
Canvas.Left
=
"2"
Canvas.Top
=
"0"
RowHeight
=
"22"
AutoGenerateColumns
=
"False"
ShowGroupPanel
=
"False"
RowIndicatorVisibility
=
"Collapsed"
ItemsSource
=
"{Binding VMAdjustmentCollection1, Mode=TwoWay}"
ignore:SourceUpdated
=
"SelectedStrategyGroup1_Adjustments_GV_SourceUpdated"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewCheckBoxColumn
DataMemberBinding
=
"{Binding IsContained, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
Header
=
"S"
Width
=
"22"
HeaderTextAlignment
=
"Center"
TextAlignment
=
"Center"
EditTriggers
=
"CellClick"
AutoSelectOnEdit
=
"True"
>
<
telerik:GridViewCheckBoxColumn.CellTemplate
>
<
DataTemplate
>
<
CheckBox
IsChecked
=
"{Binding IsContained,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
Command
=
"{Binding Path=TestCommand}"
ignore:CommandParameter
=
"{Binding Path=IsChecked, RelativeSource={RelativeSource Self}}"
/>
</
DataTemplate
>
</
telerik:GridViewCheckBoxColumn.CellTemplate
>
</
telerik:GridViewCheckBoxColumn
>
...
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>