Hi all,
I've got a grid that won't bind / display data.
Datasource:
Using firebug i can see a request is being made and the following data in JSONP format is returned by the service:
The grid is defined as below, the databound event never fires:
Any idea's?
I've got a grid that won't bind / display data.
Datasource:
var ds = new kendo.data.DataSource({ type: "odata", transport: { read: { url: dataUrl, dataType: "jsonp", jsonp: "callback", jsonpCallback: 'DataCallBack' } }, error: function (e) { alert("Error2: " + e); }, serverPaging: true, pageSize: 10});Using firebug i can see a request is being made and the following data in JSONP format is returned by the service:
DataCallBack( [{"RunStatusTag":null,"Service":"Charge Pump","SiteName":"FCCU"},{"RunStatusTag":null,"Service":"Charge Pump 2","SiteName":"FCCU2"},{"RunStatusTag":null,"Service":"Charge Pump3","SiteName":"FCCU3"}] );The grid is defined as below, the databound event never fires:
$("#grid2").kendoGrid({ dataSource:ds, dataBound: function(e) { alert("Bound2 " + e); }, columns: [ { field:"SiteName",title: "Plant/Facility" }, { field:"Service",title: "Service" } ]});Any idea's?