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

How to set PageSize client-side?

4 Answers 199 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ralf
Top achievements
Rank 1
Ralf asked on 15 Aug 2011, 01:33 PM
Hi,

I have some problem to set the PageSize property from client side. The scenario is to set the PageSize dynamically calculated by window size, to handle different screen resolutions and window sizes. So no scrolling is needed.
Is there any solution?

Best regards,
Ralf
www.d-velop.de

4 Answers, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 18 Aug 2011, 11:14 AM
Hello Ralf,

RadGrid's page size can be set on the client only when client binding is used, otherwise a change of the pagesize would require a postback. An example of client-side bound grid is available here:
http://demos.telerik.com/aspnet-ajax/grid/examples/client/declarativedatabinding/defaultcs.aspx
And a short reference on the api used to change the page size here:
http://www.telerik.com/help/aspnet-ajax/grid-gridtableview-set-pagesize.html

Kind regards,
Tsvetina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Ralf
Top achievements
Rank 1
answered on 19 Aug 2011, 08:40 AM
Hello Tsvetina,

thank you for information. Client side binding is not usefull in our szenario. So I will check other solutions.

Best regards,
Ralf
www.d-velop.de
0
sergio
Top achievements
Rank 1
answered on 27 Feb 2020, 12:36 PM
The anwsers are never directly. Always they asked you to follow a link.Too hard to learn how to use, and looks like you´ve spend more time learning the programming your own UI.  I really don´t know why we're using this Telerik UI solutions if the learning curve is higher than programmer your own UIs,  to just simply change a pagesize! I didn´t find in 1 hour how to do this in ASP.NET. 
0
Rumen
Telerik team
answered on 09 Apr 2020, 09:11 AM

Hi Sergio,

Thank you for the valuable feedback you provided here and via email! We do appreciate it!

If the Telerik UI for ASP.NET AJAX suite does not match your requirements for solely C# development (no JavaScript), you might be interested in evaluating our alternative offerings which are entirely C# based:

If you have any questions, please open a support ticket or a new forum thread and we will be glad to assist you with more information.

Regards,
Rumen
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
Ralf
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Ralf
Top achievements
Rank 1
sergio
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or