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

How to select a line of radgridview using the checkbox?

1 Answer 32 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jhon
Top achievements
Rank 1
Jhon asked on 21 Aug 2012, 07:16 PM
Good afternoon friends of telerik! I am new in the area of programming ... and I would like an example (code) how can I do to select the lines of my RadGrid via a Checkbox ...



Thank you for the attention!

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 22 Aug 2012, 04:22 AM
Hi Jhon,

RadGrid Provides a Column 'GridClientSelectColumn' which allows the user to select rows on checking it.Please make sure that you have set the ClientSettings 'AllowRowSelect' to true. Set the RadGrid property AllowMultiRowSelection to true if you need multi row selection.

ASPX:
<telerik:RadGrid ID="RadGrid1"runat="server" AllowMultiRowSelection="true">
    <MasterTableView>
         <Columns>
               <telerik:GridClientSelectColumn></telerik:GridClientSelectColumn>
                . . .
                . . .
         </Columns>
    </MasterTableView>
         <ClientSettings>
              <Selecting AllowRowSelect="true" />
         </ClientSettings>
</telerik:RadGrid>

Thanks,
Shinu.
Tags
Grid
Asked by
Jhon
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or