This question is locked. New answers and comments are not allowed.
I have a RadGridView with a cell that has a checkbox in it. This is defined using a DataTemplate like this:
<DataTemplate x:Key="CheckBoxCellTemplate">
<Grid
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
<CheckBox
HorizontalAlignment="Center"
VerticalAlignment="Center"
Click="CheckBox_Click"
IsChecked="{Binding Path=IsSelected, Mode=TwoWay}" />
</Grid>
</DataTemplate>
<telerik:GridViewDataColumn
CellTemplate="{StaticResource CheckBoxCellTemplate}">
</telerik:GridViewDataColumn>
This functionality is designed to let the user click the checkboxes to select lots of rows (yeah, I know you can shift-click and ctrl-click to select rows).
The problem is that sometimes they want to check a bunch of checkboxes, but they barely miss the checkbox and click the cell area around the checkbox, which then selects that one row and unchecks all of their checkboxes. Is there a way that I can either (a) expand the controls in the DataTemplate to take up all of the cell area or (b) prevent clicks in the cell area in a single column from causing the row to become selected?
<DataTemplate x:Key="CheckBoxCellTemplate">
<Grid
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
<CheckBox
HorizontalAlignment="Center"
VerticalAlignment="Center"
Click="CheckBox_Click"
IsChecked="{Binding Path=IsSelected, Mode=TwoWay}" />
</Grid>
</DataTemplate>
<telerik:GridViewDataColumn
CellTemplate="{StaticResource CheckBoxCellTemplate}">
</telerik:GridViewDataColumn>
The problem is that sometimes they want to check a bunch of checkboxes, but they barely miss the checkbox and click the cell area around the checkbox, which then selects that one row and unchecks all of their checkboxes. Is there a way that I can either (a) expand the controls in the DataTemplate to take up all of the cell area or (b) prevent clicks in the cell area in a single column from causing the row to become selected?