when i used grid.dataSource.transport.options.read.url, its hitting server and also if i use grid.dataSource.page(1), its hitting server again.
Please give me solution. i have pasted my code as follow
function showJobExecTable(jobId) {
var grid=$("#jobexecgrid").data('kendoGrid');
if(grid!=undefined) {
grid.dataSource.transport.options.read.url =contextPath + "/ajax/jobExecs.htm?jobId="+jobId.trim();
grid.dataSource.page(1);
grid.dataSource.read();
grid.refresh();
}
}
Please give me solution. i have pasted my code as follow
function showJobExecTable(jobId) {
var grid=$("#jobexecgrid").data('kendoGrid');
if(grid!=undefined) {
grid.dataSource.transport.options.read.url =contextPath + "/ajax/jobExecs.htm?jobId="+jobId.trim();
grid.dataSource.page(1);
grid.dataSource.read();
grid.refresh();
}
}