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

hitting server thrice

1 Answer 20 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:13 PM
 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())
                    
                    });

1 Answer, 1 is accepted

Sort by
0
Chris
Top achievements
Rank 1
answered on 10 Oct 2012, 09:49 PM
Do you have other elements in your DOM with an ID of #jobsgrid?

If you look in the elements or DOM browser of your debugger you should be able to verify that after the page has loaded and finished..
Tags
Grid
Asked by
Vijay
Top achievements
Rank 1
Answers by
Chris
Top achievements
Rank 1
Share this question
or