Currenty i'm using kendo grid server site pagination and there is a problem with page size property. When i choose page size 'all' then i check request body on the web browser and i don't see pageSize property but when i choose 50 page size everything is OK.
{skip: 0, page: 1, sort: [{field: "Id", dir: "desc"}]} --> page size ALL
{skip: 0, pageSize:50, page: 1, sort: [{field: "Id", dir: "desc"}]} --> page size 50
var dataSource = new kendo.data.DataSource({
type: "json",
...
batch: false,
pageSize: 20,
serverPaging: true,
serverFiltering: true,
serverSorting: true,
schema: {
data: "Data",
total: "Total",
errors: "Errors",
model: {
id: "Id",
fields: fieldsCommon
}
}
});
var masterGrid = $("#" + divId).kendoGrid({
dataSource: dataSource,
edit: function (e) {
},
save: function (e) {
kendo.ui.progress($(".k-window"), true);
},
groupable: true,
sortable: true,
pageable: {
pageSizes: ['all', 10, 20, 50, 100],
refresh: true,
buttonCount: 5
},
selectable: true,
height: 450,
reorderable: true,
resizable: true,
columnMenu: false,
columns: [
...
]
}).data("kendoGrid");