This question is locked. New answers and comments are not allowed.
I would like for my grid to have the first column be a checkbox column and all other columns to be read only. After the user checks the records they want they would then click a button to set all of the checked ones to allow edit. My checkbox column looks like this.
| <telerik:GridViewColumn HeaderText="Check"> |
| <telerik:GridViewColumn.CellStyle> |
| <Style TargetType="telerikGridView:GridViewCell"> |
| <Setter Property="Template"> |
| <Setter.Value> |
| <ControlTemplate TargetType="telerikGridView:GridViewCell"> |
| <Border Padding="5,0,5,0" BorderThickness="0,0,1,1" BorderBrush="#FFB3B3B3"> |
| <CheckBox HorizontalAlignment="Center" VerticalAlignment="Center" Checked="CheckBox_Checked" /> |
| </Border> |
| </ControlTemplate> |
| </Setter.Value> |
| </Setter> |
| </Style> |
| </telerik:GridViewColumn.CellStyle> |
| </telerik:GridViewColumn> |
I'm not sure if I need to have a field in my datasource that stores the checked state and if so how to bind this to it. In my checked event handler I don't know how to get a reference back to the record.
I have seem some examples that use the ParentOfType extension but that does not even show up for me. I am using the latest internal build and am not sure what I need to do to enable that.
