2
如何在Kendo設置pageSize
grid
dataSoure
。我已經嘗試了下面的代碼,但它不工作。如何設置Kendo柵格數據源頁面大小編程
grid.dataSource.data(result).dataSource.pageSize(5);
function loadCentres(e) {
arrCentreId = new Array();
arrCentreIdRemove = new Array();
$.ajax({
type: 'GET',
url: '@Url.Action("GetCentres", "AAMaintenance")',
dataType: 'json',
data: { examinerId: hdnexaminerId },
success: function (result) {
var grid = $("#Centres").data("kendoGrid");
grid.dataSource.data(result).dataSource.pageSize(5);
}
});
}