I am trying to use the server paging on a Kendo Grid. However, when I click the a different page the call to the server is made twice.
$("#table").kendoGrid({
dataSource: {
transport: {
read: {
url: "/Analysis/addPortalDatasetstoTable",
data: { dataType: DatasetIdModel.dataType, dimensionsType: DatasetIdModel.dimensionsType, dsId: arr },
type: "POST",
dataType: "json",
traditional: true
}
},
schema: {
data: "data",
total: "total"
},
pageSize: 20,
serverPaging: true
},
height: 430,
filterable: true,
sortable: true,
pageable: true,
columns: [
{ field: "name", title: "Series Name", width: "130px" },
{ field: "category", title: "Category", width: "130px" },
{ field: "value", width: "130px" }
]
});
server call:
public JsonResult addPortalDatasetstoTable(DatasetIdModel model, int pageSize, int skip)
$("#table").kendoGrid({
dataSource: {
transport: {
read: {
url: "/Analysis/addPortalDatasetstoTable",
data: { dataType: DatasetIdModel.dataType, dimensionsType: DatasetIdModel.dimensionsType, dsId: arr },
type: "POST",
dataType: "json",
traditional: true
}
},
schema: {
data: "data",
total: "total"
},
pageSize: 20,
serverPaging: true
},
height: 430,
filterable: true,
sortable: true,
pageable: true,
columns: [
{ field: "name", title: "Series Name", width: "130px" },
{ field: "category", title: "Category", width: "130px" },
{ field: "value", width: "130px" }
]
});
server call:
public JsonResult addPortalDatasetstoTable(DatasetIdModel model, int pageSize, int skip)