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

How to set different page size to different pages In Kendo UI Grid

2 Answers 344 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mahesh
Top achievements
Rank 1
Mahesh asked on 04 Apr 2016, 07:20 AM

Hi I have one requirement in Kendo  UI Grid pagination.

How to show

X items / rows in 1st page

X+1 items / rows in 2nd page

X+2 items / rows in 3rd page

I have tried bellow code but not worked, it will show 2 items per page because of latest query selection.

$("div[kendo-grid]").data().kendoGrid.dataSource.query({pageSize: 3, page:1});

$("div[kendo-grid]").data().kendoGrid.dataSource.query({pageSize: 4, page:2});

$("div[kendo-grid]").data().kendoGrid.dataSource.query({pageSize: 2, page:3});

 

2 Answers, 1 is accepted

Sort by
0
Mahesh
Top achievements
Rank 1
answered on 04 Apr 2016, 07:28 AM
http://stackoverflow.com/questions/36396028/how-to-set-different-page-size-to-different-pages-in-kendo-ui-grid
0
Dimiter Topalov
Telerik team
answered on 05 Apr 2016, 02:26 PM

Hello Mahesh,

The described functionality is not supported, however you can set the Grid's dataSource pagesize via the JavaScript API at any point in your code.

Let us know, if you have further questions about the Kendo UI Widgets.

Regards,
Dimiter Topalov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Mahesh
Top achievements
Rank 1
Answers by
Mahesh
Top achievements
Rank 1
Dimiter Topalov
Telerik team
Share this question
or