This question is locked. New answers and comments are not allowed.
Hi,
I have a radGridView with 2 columns with checkboxes.
When I check/uncheck a checkbox in the first column, it should affect only that cell (normal behavior).
When I check/uncheck a checkbox in the second column, I would like to check/uncheck automatically the one in the first column, without having to manually check/uncheck it.
How may I achieve this?
Thanks,
Gen
Here is my code:
I have a radGridView with 2 columns with checkboxes.
When I check/uncheck a checkbox in the first column, it should affect only that cell (normal behavior).
When I check/uncheck a checkbox in the second column, I would like to check/uncheck automatically the one in the first column, without having to manually check/uncheck it.
How may I achieve this?
Thanks,
Gen
Here is my code:
<
telerik:RadGridView
x:Name
=
"radgridview1"
RowIndicatorVisibility
=
"Collapsed"
Height
=
"527"
ShowGroupPanel
=
"False"
ItemsSource
=
"{Binding Path=AllUser}"
AutoGenerateColumns
=
"False"
ScrollMode
=
"RealTime"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
UniqueName
=
"CompleteName"
IsReadOnly
=
"True"
DataMemberBinding
=
"{Binding CompleteName}"
Header
=
"Users"
/>
<
telerik:GridViewDataColumn
UniqueName
=
"IsAdmin"
Header
=
"Admin"
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
CheckBox
IsChecked
=
"{Binding IsAdmin, Mode=TwoWay}"
/>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
</
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn
UniqueName
=
"IsFullAdmin"
Header
=
"Full Admin"
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
CheckBox
IsChecked
=
"{Binding IsFullAdmin, Mode=TwoWay}"
/>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
</
telerik:GridViewDataColumn
>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>