I was wondering if it was possible to disable/hide the paging feature dynamically when only 1 page is shown, i.e. PageSize is set to 100, but the data only consists of 70 rows.
Thanks!
Lennart
3 Answers, 1 is accepted
0
Nikolay Rusev
Telerik team
answered on 14 Jan 2013, 08:13 AM
Hello Lennart,
You can hide the pager when total pages in the data source is one. For example:
//get reference to the Grid
var grid = $(".k-grid").data("kendoGrid");
grid.bind("dataBound", function() {
if (this.dataSource.totalPages() == 1) {
this.pager.element.hide();
}
});
Regards,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!