Hi
I'm using a kendoListView and a kendoPager like this :
$("#pagerLstArticle").kendoPager({
dataSource: articles,
pageSizes: [12, 24, 36, 48],
messages: {
display: "Articles {0} à {1} sur {2}"
},
});
I would like to adap the kendoPager pageSizes depending on differents panels displayed or not on the screen
I can manage the kendoListView page size easily but for the kendoPager I don't know
How can I do this ?
Thank you
Isabelle
Good afternoon,
I've been working on an effort to replace angularJS with Kendo for JQuery. For the most part, there's been a solution for everything, but I'm running into a bit of a hiccup. Is there some sort of equivalent I can use to replace the dir-pagination directive (which can be applied to things like TR or LI elements) that angular uses?
Thanks,
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();