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

PageSize in the ASP.NET MVC wrappers

1 Answer 2183 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 31 Jul 2012, 04:49 PM
I am sure I am missing something here, but I can't find how to set the PageSize in the grid using the MVC wrappers.  Snippet from setting the datasource.

    .Pageable(pager => pager
                .PageSize(20) //  This fails.
                .PageSizes(true)               
                .PageSizes(new int[] { 10,20,30 }))


In the client library there is a pageSize property.

What am I missing?

Thanks in advance
Michael

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 01 Aug 2012, 07:01 AM
Hello,

The PageSize setting should be set in the DataSource configuration.

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