This is a migrated thread and some comments may be shown as answers.

How to select multiple checkbox in same row

0 Answers 65 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Gen
Top achievements
Rank 1
Gen asked on 08 Feb 2012, 12:15 AM
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>

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
Gen
Top achievements
Rank 1
Share this question
or