this is my code. its hitting server 3 times when page is loaded.
Please give me the solution.
$("#jobsgrid").kendoGrid({
dataSource: {type: "json",
serverPaging: true,
pageSize: ${pagesize},
transport: { read: { url: contextPath + "/ajax/jobs.htm", dataType: "json"} },
schema: { data: "data", total: "count" }
},
resizable: true,
scrollable: true,
sortable: true,
pageable: true,
rowTemplate: kendo.template($("#template1").html())
});
Please give me the solution.
$("#jobsgrid").kendoGrid({
dataSource: {type: "json",
serverPaging: true,
pageSize: ${pagesize},
transport: { read: { url: contextPath + "/ajax/jobs.htm", dataType: "json"} },
schema: { data: "data", total: "count" }
},
resizable: true,
scrollable: true,
sortable: true,
pageable: true,
rowTemplate: kendo.template($("#template1").html())
});