Hello, i have no idea how to get the checked/unchecked event in mvvm. My goal is that i wan't do do some cell item calculation when rows are selected/deselected.
Here is my code:
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding IsActive}"
Header
=
""
HeaderCellStyle
=
"{StaticResource HeaderCellStyleGrid1}"
ColumnGroupName
=
"GruppenBezeichnung"
Width
=
"25"
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
CheckBox
IsChecked
=
"{Binding IsActive, Mode=TwoWay}"
>
<
telerik:EventToCommandBehavior.EventBindings
>
<
telerik:EventBinding
Command
=
"{Binding OnGridSelectionChangedCommand}"
EventName
=
"Checked"
PassEventArgsToCommand
=
"True"
/>
</
telerik:EventToCommandBehavior.EventBindings
>
</
CheckBox
>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
</
telerik:GridViewDataColumn
>
There is also a CheckboxColumn. Would this be a better approach and how get the checked/unchecked event?
<
telerik:GridViewCheckBoxColumn
DataMemberBinding
=
"{Binding IsActive, Mode=TwoWay}"
Header
=
""
AutoSelectOnEdit
=
"True"
EditTriggers
=
"CellClick"
HeaderCellStyle
=
"{StaticResource HeaderCellStyleGrid1}"
ColumnGroupName
=
"GruppenBezeichnung"
Width
=
"25"
/>
Thank you and please can you show me a example.
Greetings RG