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

[Solved] GridCheckBoxColumn - Check All

3 Answers 260 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Benjamin Millspaugh
Top achievements
Rank 1
Benjamin Millspaugh asked on 14 May 2008, 12:37 PM
I have a GridCheckBoxColumn and I would like to add a "Check All" option to the page which would check all of the check boxes in a specific column.  I would prefer add a button to the CommandItemTemplate and use the client-side API so that the user can use the feature to check all of the check boxes and then uncheck a few before submitting the page.

I have not been able to find any code like this in the forums or the demos & documentation so I am posting a new thread, but it seems like it must be a common request so please direct me to another thread if it has already been documented.  Thanks!

3 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 14 May 2008, 12:43 PM
Hi Benjamin,

You can get the requested functionality built-in in RadGrid through the GridClientSelectColumn:

http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/Client/Selecting/DefaultCS.aspx

(see the second Grid).

I hope it fulfills your requirements.

Regards,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Benjamin Millspaugh
Top achievements
Rank 1
answered on 14 May 2008, 01:06 PM
Thank you for the quick reply, but it unfortunately does not solve my problem.  I am not trying to select multiple rows as shown in the example you provided, I am trying to check multiple check boxes which set a boolean variable in the table while editing multiple rows (i.e. I have enabled AllowMultiRowEdit).  You should be able to see what I am trying to do by looking at the image below (click on the thumbnail to enlarge).  The "[] Verify All" checkbox in the CommandItemTemplate could also be a "[Check All]" button or hyperlink if it is easier.

Edit Form Example

Thanks again for your help!
0
Konstantin Petkov
Telerik team
answered on 15 May 2008, 05:03 AM
Hi Benjamin,

You can find a similar request and solution in this forum thread. I hope this fulfills your requirements!

Greetings,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Benjamin Millspaugh
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Benjamin Millspaugh
Top achievements
Rank 1
Share this question
or