kendo datasource get

Solutions on MaxInterview for kendo datasource get by the best coders in the world

showing results for - "kendo datasource get"
Brenden
10 Jun 2020
1var dataSource = new kendo.data.DataSource({
2  transport: {
3    read:  {
4      url: "https://demos.telerik.com/kendo-ui/service/products",
5      dataType: "jsonp" // "jsonp" is required for cross-domain requests; use "json" for same-domain requests
6    }
7  }
8});
9dataSource.fetch(function(){
10  var data = dataSource.data();
11  console.log(data.length);  // displays "77"
12  console.log(data[0].ProductName); // displays "Chai"
13});