How to select multiple checkbox in same row

1 posts, 0 answers
  1. Gen
    Gen avatar
    15 posts
    Member since:
    Nov 2010

    Posted 07 Feb 2012 Link to this post

    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:
    <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>
Back to Top