This is a migrated thread and some comments may be shown as answers.

hitting server twice

0 Answers 75 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Vijay
Top achievements
Rank 1
Vijay asked on 08 Oct 2012, 01:09 PM
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();
                  
                    }
                  
     
                }

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Vijay
Top achievements
Rank 1
Share this question
or