I have a WCF RESTful service (http://localhost:8000/AccountService/GetAccounts) outputting valid JSON data:
The following code does not bind the JSON output to the Grid Widget:
var wcfDS = new kendo.data.DataSource({
transport: {
read: {
url: "http://localhost:8000/AccountService/GetAccounts",
dataType: "json"
}
},
error: function(e) {
alert(e.toString());
}
});
$("#grid").kendoGrid({
dataSource: wcfDS,
columns: [...]
});
The most relevant error message I can see is e.errorThrown = "No Transport". Your thoughts?
[ {"Department":"Manager","ID":"1","Name":"Alexandre Heuze","Position":"General Manager"}, {"Department":"Accouting","ID":"2","Name":"Pengli Liu","Position":"Accounting Manager"}, {"Department":"Human Resources","ID":"5","Name":"Jie Wu","Position":"HR Administrator"}, {"Department":"Sales and Purchasing","ID":"6","Name":"Fei He","Position":"Sales Manager"}, {"Department":"R and D Department","ID":"10","Name":"Jun Zuo","Position":"R and D Engineer"} ]
The following code does not bind the JSON output to the Grid Widget:
var wcfDS = new kendo.data.DataSource({
transport: {
read: {
url: "http://localhost:8000/AccountService/GetAccounts",
dataType: "json"
}
},
error: function(e) {
alert(e.toString());
}
});
$("#grid").kendoGrid({
dataSource: wcfDS,
columns: [...]
});
The most relevant error message I can see is e.errorThrown = "No Transport". Your thoughts?