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

RadGrid Using GridClientSelectColumn: Prevent Select All Checkbox from Firing When All Rows Selected on Current Page

4 Answers 218 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 1
Joe asked on 16 Mar 2012, 07:39 PM
Like the title describes, I'd like to prevent the "select all" checkbox within the header of the GridClientSelectColumn from firing or being selected automatically when all rows in the grid (current page) have been selected manually by the user (I believe it did not automatically select the header checkbox in some older versions).  The reason is that we are treating this header checkbox a little differently and when the user specifically checks this "select all" checkbox, it will check all rows of the current page AND we will check for it behind the scenes to select all items that have been returned for this specific query - but we also want the user to be able to select just those items on the current page if they wish without having this header checbox become checked.

I hope that makes sense and I appreciate the help!

4 Answers, 1 is accepted

Sort by
0
Joe
Top achievements
Rank 1
answered on 20 Mar 2012, 05:05 PM
Seems like there is no easy way to accomplish this so I'll create a custom column.

Thanks.
0
Jayesh Goyani
Top achievements
Rank 2
answered on 20 Mar 2012, 06:18 PM
Hello Joe,

I tried with your requirement but i faced some issue.(like : when i click on checkbox row is not automatically select/Deselect functionality for particular row).

So, You have to manage this thing your own way.

Let me know if any concern.

Thanks,
Jayesh Goyani
0
Joe
Top achievements
Rank 1
answered on 20 Mar 2012, 06:30 PM
Thank you for trying!

I appreciate it.
0
Chau
Top achievements
Rank 1
answered on 06 Jun 2013, 05:44 PM
I'd like to hear from Telerik team that using GridClientSelectColumn in a grid, there is no way to uncheck the 'Select All' checkbox in the header when all rows are selected on the current page before I go on a different alternative like Joe did.
I have tried adding Client-side RowSelecting/RowSelected events, and even though I set the 'Select All' checkbox.checked=false in the RowSelecting/RowSelected event, I still saw the 'Select All' control being checked.  Is there another property to set to force the control to ignore its current behavior (which automatically marks 'Select All' checked  when all rows of the current page are selected).  
I am using Telerik.Web.UI version 2012.3.1308.40.
Thanks,
Chau
Tags
Grid
Asked by
Joe
Top achievements
Rank 1
Answers by
Joe
Top achievements
Rank 1
Jayesh Goyani
Top achievements
Rank 2
Chau
Top achievements
Rank 1
Share this question
or