Kendo Grid - Paging in ASP.NET MVC Razor example

4 posts, 1 answers
  1. Bhushan
    Bhushan avatar
    6 posts
    Member since:
    Dec 2012

    Posted 18 Dec 2012 Link to this post

    I am using trial version of Kendo UI and trying to use Grid control.

    I am referring the example shown in link and looking at Basic Usage.

    I am using ASP.NET MVC 4 Razor, and I got Kendo Grid working on a page, but only thing is I am not able to get paging working on it.
    the example shown for cshtml page doesn't show how to configure page size but html example shows , so not sure how to set paging limit set in cshtml page?

    can you please help?
  2. Answer
    Vladimir Iliev
    Vladimir Iliev avatar
    2199 posts

    Posted 19 Dec 2012 Link to this post

    Hi Bhushan,

    Basically you can set the Grid page size from the DataSource PageSize option:

    DataSource(dataSource => dataSource
            .Read(read => read.Action("Products_Read", "Grid"))
    Kind Regards,
    Vladimir Iliev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Bhushan
    Bhushan avatar
    6 posts
    Member since:
    Dec 2012

    Posted 19 Dec 2012 Link to this post

    Thanks a lot for your reply.

    Yes you are right , I figured that out after few hours of posting question here :).
    It would be better If you update your basic usage documentation of grid for MVC to show how you can set paging. also I think even though you see paging enabled but unless and until you add references of jQuery 1.8.2 and kendo.aspnetmvc.min.js on your page , the paging doesn't work.

    Appreciate your responce , Thanks.
  4. hash
    hash avatar
    6 posts
    Member since:
    Jun 2011

    Posted 13 Feb 2013 Link to this post

    It is the client side paging right, but what if i want to do server side paging, sorting?
Back to Top