Paging property is not working in a listview

1 posts, 0 answers
  1. Rohit
    Rohit avatar
    1 posts
    Member since:
    Apr 2012

    Posted 21 Sep 2012 Link to this post

    Hi All,
    The list of elements shown in a listview are not getting paged depending on the no. entered in the code in cshtml.
    For example :

    @(Html.Kendo().ListView<Kendo.Mvc.Examples.Models.ProductViewModel>(Model)
        .Name("listView")
        .TagName("div")
        .ClientTemplateId("template")
        .DataSource(dataSource => {
            dataSource.Read(read => read.Action("Products_Read", "ListView"));
            dataSource.PageSize(12);
        })
        .Pageable()        
    )

    Though we mention 12 in the pagesize, I am getting all my records to the view. Please help how to show the no. of
    records as per our choice.


    Regards,
    Rohit


Back to Top