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

GridClientSelectColumn Header Checkbox functionality across all pages

1 Answer 65 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pranav
Top achievements
Rank 1
Pranav asked on 14 Dec 2013, 07:26 AM
Hi.. I have used the GridClientSelectColumn.As per the implementation when I click the header checkbox it automatically selects the individual checkboxes present on the grid.This is fine with me. But I need to implement something like this:
Suppose I have 3 pages on my grid, and when I click the header checkbox present on the 1st page it should select all the checkboxes across all the pages. I have implemented the code for this. but when I go to 3rd page and deselect a row I need to disable the header checkboxes of 1st and the 2nd page.
Please tell me the trick to disable these checkboxes but maintaining the selection of individual rows.

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 19 Dec 2013, 05:29 AM
Hi Pranev,

Since you did not elaborate on how exactly you have accomplish the select all for all pages functionality, it will be hard to provide a relevant to your scenario solution.

Nevertheless, one way for achieving such functionality would be to keep track of all the selected items through the pages and manually select/deselect them on paging. The same should be done with the header checkbox. At the following help article you will find how to get reference to the header checkbox: "Persisting the Selected Rows Client-side on Sorting/Paging/Filtering/Grouping".

Please keep in mind that RadGrid selection is designed to work with the current page only and every customization should be handled on your end.

Hope that helps.


Regards,
Konstantin Dikov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Grid
Asked by
Pranav
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or