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

Server Paging - Check all selects current page record not all pages

2 Answers 136 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sanjay
Top achievements
Rank 1
Sanjay asked on 20 Jul 2016, 10:07 AM

Hi,

 

I am using grid with server side pagination/filtering & column checkbox. Lets say, I have specified page size = 25. My requirement is if user has applied some filter and total records are less than 500, then user should be able to Check All records across multiple pages. Right now, Check All selects only current page records.

Alternative could be, If I can dynamically change the page size to ALL, that should also solve this. 

Regards,

Sanjay

2 Answers, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 22 Jul 2016, 07:46 AM
Hello,

You could make a request to the server to set the property on which the checkbox column depends to true. The other option that I can think of is to keep some external state and apply the checkbox state in the dataBound event.

Setting the page size to ALL can be done by setting the pageSize to the dataSource total number of records:
dataSource.pageSize(dataSource.total())


Regards,
Daniel
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
0
Sanjay
Top achievements
Rank 1
answered on 22 Jul 2016, 08:25 AM
Thanks
Tags
Grid
Asked by
Sanjay
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Sanjay
Top achievements
Rank 1
Share this question
or