How to change PageSize according to screen size?

2 posts, 0 answers
  1. Adil
    Adil avatar
    26 posts
    Member since:
    Mar 2014

    Posted 19 Apr 2020 Link to this post

    Dear Telerik Admins

    I want to know, Do you have any solution for dynamic change PageSize?

    If i expand my question, I want to show my grid in 10 element default but when i want to show it in big screen i want to show in 20 or 30 element?

    Is there any solution for it?

     

    Thanks

  2. Silviya Stoyanova
    Admin
    Silviya Stoyanova avatar
    66 posts

    Posted 21 Apr 2020 Link to this post

    Hello Adil,

     

    There is a dedicated knowledge base article you could find useful. The approach requires to subscribe to resize() method of the window and using the pageSize() method of the dataSource to set the new page size.

    https://docs.telerik.com/kendo-ui/knowledge-base/grid-pagesize-relative-to-height

    Y
    ou could also follow this forum thread for more details: https://www.telerik.com/forums/autosizing-of-pagesize

     

    Kind Regards, Silviya Stoyanova Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
Back to Top