Here is my Checkbox in RadGridView which is not implemented in MVVM. I would like to implement this MVVM.
I used interaction triggers but the command is not getting fired. How can I do this ?
<
telerik:GridViewDataColumn
Header
=
"Delete"
Width
=
"60"
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
CheckBox
HorizontalAlignment
=
"Center"
IsChecked
=
"{Binding IsDeleted, Mode=TwoWay}"
>
<
i:Interaction.Triggers
>
<
i:EventTrigger
EventName
=
"Checked"
>
<
cmd:EventToCommand
Command
=
"{Binding DiagramChecked}"
/>
</
i:EventTrigger
>
</
i:Interaction.Triggers
>
</
CheckBox
>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
</
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn
Header
=
"Delete"
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
CheckBox
IsChecked
=
"{Binding IsDeleted, Mode=TwoWay }"
Checked
=
"ToggleButton_OnChecked"
Unchecked
=
"ToggleButton_OnUnchecked"
>
</
CheckBox
>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
</
telerik:GridViewDataColumn
>