—A promise that will be resolved when the data has been loaded, or rejected if an HTTP error occurs.
<divid="grid"></div><script>var dataSource =newkendo.data.DataSource({transport:{read:{url:"https://demos.telerik.com/service/v2/core/products"}}});
dataSource.fetch(function(){let data =this.data();// initialize a Kendo Grid with the returned data from the server.$("#grid").kendoGrid({dataSource:{data: data
},height:800});});</script>
<divid="grid"></div><script>var dataSource =newkendo.data.DataSource({transport:{read:{url:"https://demos.telerik.com/service/v2/core/products"}}});
dataSource.fetch().then(function(){var data = dataSource.data();// initialize a Kendo Grid with the returned data from the server.$("#grid").kendoGrid({dataSource:{data: data
},height:800});});</script>