JSFiddle - React, Tailwind, and code Playground
by thakkar
HTML
<script src="http://knockoutjs.com/downloads/knockout-3.0.0.js"></script>
<script src="http://cdn.kendostatic.com/2013.3.1119/js/kendo.all.min.js"></script>
<link rel="stylesheet" href="http://cdn.kendostatic.com/2013.3.1119/styles/kendo.common.min.css">
<link rel="stylesheet" href="http://cdn.kendostatic.com/2013.3.1119/styles/kendo.silver.min.css">
<script src="http://rniemeyer.github.io/knockout-kendo/js/knockout-kendo.min.js"></script>
<div data-bind="kendoGrid: {data:obj.items,scrollable: false,columns: [
{ field: 'id', title: 'id', width: 150 },
{ field: 'name', title: 'name' },
{ field: 'type', title: 'type' }
] } ">
</div>
JavaScript
var Item = function(id, name, type) {
this.id = id;
this.name = ko.observable(name);
this.type = type;
};
var vm2 = function() {
this.items = ko.observableArray([
new Item(1, "one", "a"),
new Item(2, "two", "b"),
new Item(3, "three", "a")
]);
var ViewModel = function() {
this.obj = ko.observable(new vm2())
};
ko.applyBindings(new ViewModel());