Hi,
We're not sure if this is a bug or feature.
Using ListView and the method setDataSource with the built-in paging. The ListView appears to change data sources but the paging doesn't. Tried using the refresh() method but same result.
We worked around it by using the Pager widget and ListView without the bulit-in paging and this seems to work okay.
It's not a problem. Just found it weird that we do the same for a Grid on the same page using the method setDataSource and the data source changes okay along with the paging.
Any thoughts?
Thanks// First load
var dataSourceListView = new kendo.data.DataSource({
data: dataSource,
pageSize: 8
});
$("#listView").kendoListView({
dataSource: dataSourceListView,
dataBound: function () {
},
template: kendo.template($("#template").html()),
pageable: true
});
// Not first load
$("#listView").data("kendoListView").setDataSource(dataSourceListView);
//$("#listView").data("kendoListView").refresh();