JSFiddle - React, Tailwind, and code Playground
by Ignacio Fuentes
HTML
<link rel="stylesheet" href="http://cdn.kendostatic.com/2013.2.918/styles/kendo.common.min.css">
<link rel="stylesheet" href="http://cdn.kendostatic.com/2013.2.918/styles/kendo.silver.min.css">
<script src="http://cdn.kendostatic.com/2013.2.918/js/kendo.mobile.min.js"></script>
<div id="grid"></div>
JavaScript
var ds = new kendo.data.DataSource({
schema: {
model: {
id: "id",
fields: {
name: {},
size: {
type: "number" //this is the type
}
}
}
},
data: [{
id: "1",
name: "foo",
size: 15
}, {
id: "2",
name: "bar"
}]
});
$("#grid").kendoGrid({
columns: [{
field: "name"
},
"size",
{ command: ["edit", "destroy"], title: " ", width: "160px" }
],
scrollable: true,
dataSource: ds,
editable: "popup"
});
var g = $("#grid").data("kendoGrid");