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

How to change PageSize according to screen size?

1 Answer 10 Views
This is a migrated thread and some comments may be shown as answers.
Adil
Top achievements
Rank 1
Veteran
Adil asked on 19 Apr 2020, 08:34 AM

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

1 Answer, 1 is accepted

Sort by
0
Silviya Stoyanova
Telerik team
answered on 21 Apr 2020, 07:52 AM

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.
Tags
Grid
Asked by
Adil
Top achievements
Rank 1
Veteran
Answers by
Silviya Stoyanova
Telerik team
Share this question
or