JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="http://cdn.kendostatic.com/2011.3.1407/styles/kendo.common.min.css">
<link rel="stylesheet" href="http://cdn.kendostatic.com/2011.3.1407/styles/kendo.default.min.css">
<script src="http://cdn.kendostatic.com/2011.3.1407/js/kendo.all.min.js"></script>
JavaScript
var dataSource = new kendo.data.DataSource({
transport: {
read: function(options) {
$.ajax({
url: "/echo/json/",
type: "POST",
data: { json: JSON.stringify({ data: [ "One", "Two"] }) },
success: function(result) {
//call the success handler to notify the DataSource that data has been received
options.success(result.data);
}
});
}
},
change: function() {
var dataView = this.view();
alert(JSON.stringify(dataView));
}
});
dataSource.read();