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

3 posts, 0 answers
  1. Mahesh
    Mahesh avatar
    5 posts
    Member since:
    Feb 2016

    Posted 04 Apr 2016 Link to this post

    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. Mahesh
    Mahesh avatar
    5 posts
    Member since:
    Feb 2016

    Posted 04 Apr 2016 Link to this post

    http://stackoverflow.com/questions/36396028/how-to-set-different-page-size-to-different-pages-in-kendo-ui-grid
  3. Dimiter Topalov
    Admin
    Dimiter Topalov avatar
    1266 posts

    Posted 05 Apr 2016 Link to this post

    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!
Back to Top