dataSource안에
pageSize: 10,
grid 안에
pageable : {
refresh: true,
pageSizes : [
5, 10, 20, 30, 40, 50, "all"
],
buttonCount: 5
},
grid 안에
dataBound : function() {
// row index(순번)
var rows = this.items();
$(rows).each(function () {
var index = $("#grid").data("kendoGrid").dataSource.total() - $(this).index()
- ($("#grid").data("kendoGrid").dataSource.pageSize() * ($("#grid").data("kendoGrid").dataSource.page() - 1));;
var rowLabel = $(this).find(".row-number");
$(rowLabel).html(index);
});
}