In the example below, taken from the Kendo site, how does the dataSource itself get populated?
Nothing in this example seems to indicate how the data source would get populate if the ajax call succeeds?
var dataSource = new kendo.data.DataSource({ transport: { read: function(options) { // make JSONP request to http://demos.kendoui.com/service/products $.ajax({ dataType: "jsonp", // "jsonp" is required for cross-domain requests; use "json" for same-domain requests success: function(result) { // notify the data source that the request succeeded options.success(result); }, error: function(result) { // notify the data source that the request failed options.error(result); } }); } }});dataSource.fetch(function() { console.log(dataSource.view().length); // displays "77"});