I am loading the Kendo grid with Jquery Ajax call as following. I am trying add Paging to Grid Unable but do not know where put the Paging info because data is loaded from Jquery. Where and how should pass the parameter take and Skip Parameters ?
var srchResuls = function () {
$.ajax({
url: "/Default.aspx/Getserachres",
type: "post",
dataType: "json",
contentType: "application/json; charset=utf-8",
success: function (result) {
searchResults = result;
}
}).done(function () {
var dataSource = new kendo.data.DataSource({
data: searchResults.d,
schema: {
model: {
id: "DOCK_ACTIVITY_ID",
fields: {
DOCK_ACTIVITY_ID: { type: "number", editable: false },
LOC_ABBR: { type: "string", editable: true },
// BatchId :{ editable: true, nullable: true },
SHIPPER_ACCT_NBR: { type: "number", editable: false },
ORDER_ID: { type: "number", editable: false },
VESSEL_VIN: { type: "string" },
CUSTOMER_PT: { type: "string" }
}
},
}
});
var grid = $('#srchgrd').data("kendoGrid");
dataSource.read();
grid.setDataSource(dataSource);
// grid.change=rowselected;
});
};