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

Paging property is not working in a listview

0 Answers 149 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Rohit
Top achievements
Rank 1
Rohit asked on 21 Sep 2012, 07:49 AM
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


No answers yet. Maybe you can help?

Tags
ListView
Asked by
Rohit
Top achievements
Rank 1
Share this question
or