First, I am using ASP.Net MVC 4 and the following code to bind to an IEnumerable list...
<div style="text-align:right">
@(Html.Kendo().ListView<mattcuda.com.Kendo.Models.MattCudaImage>(Model)
.Name("listView")
.TagName("div")
.ClientTemplateId("template")
.Navigatable()
.DataSource(dataSource => {
dataSource.Read(read => read.Action("Images_Read", "ListView"));
dataSource.PageSize(5);
})
.Selectable(selectable => selectable.Mode(ListViewSelectionMode.Multiple))
.Events(events => events.Change("onChange").DataBound("onDataBound"))
.Pageable()
)
</div>
When I do this, the listview binds perfectly and it limits the paging to 5 as it should but it won't page to the next set of records. What code am I missing to make this happen. Does it not happen automatically since it is using binding?
Thanks,
Matt
<div style="text-align:right">
@(Html.Kendo().ListView<mattcuda.com.Kendo.Models.MattCudaImage>(Model)
.Name("listView")
.TagName("div")
.ClientTemplateId("template")
.Navigatable()
.DataSource(dataSource => {
dataSource.Read(read => read.Action("Images_Read", "ListView"));
dataSource.PageSize(5);
})
.Selectable(selectable => selectable.Mode(ListViewSelectionMode.Multiple))
.Events(events => events.Change("onChange").DataBound("onDataBound"))
.Pageable()
)
</div>
When I do this, the listview binds perfectly and it limits the paging to 5 as it should but it won't page to the next set of records. What code am I missing to make this happen. Does it not happen automatically since it is using binding?
Thanks,
Matt