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

Datasource to a Webservice

0 Answers 112 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
George
Top achievements
Rank 1
George asked on 18 Apr 2012, 03:27 AM
I am a new KendoUI/Jquery/Javascript developer and I am having the following issue. 
The ajax call is working ($.ajax(GetAirportList)), so I know the webservice is ok.
When the airportListDataSource is invoked, no data is loaded and the Javascript console (in Chrome) is 
giving me the message "Uncaught RangeError: Maximum call stack size exceeded"

Please help!
 
var airportList = {};

        var GetAirportList = {
            type: "POST",
            url: "OWLV2be.asmx/GetAirportList",
            data: "{}",
            contentType: "application/json; charset=utf-8",
            dataType: "json",
            success: function (msg) {
                airportList = msg;
            }
        };

        var airportListDataSource = new kendo.data.DataSource({
            transport: {
                read: {
                    type: "POST",
                    url: "OWLV2be.asmx/GetAirportList",
                    contentType: "application/json; charset=utf-8",
                    dataType: "json"
                }
            }
        });

        $(document).ready(function () {
            $.ajax(GetAirportList);

            $("#airpAirport").kendoDropDownList( {
                dataTextField: "airportName",
                dataValueField: "airportCode",
                dataSource:  airportListDataSource
            });

No answers yet. Maybe you can help?

Tags
Data Source
Asked by
George
Top achievements
Rank 1
Share this question
or