JSFiddle - React, Tailwind, and code Playground
by Rikin Patel
HTML
<script src="http://cdn.kendostatic.com/2012.3.1114/js/kendo.all.min.js"></script>
<link rel="stylesheet" href="http://cdn.kendostatic.com/2012.3.1114/styles/kendo.common.min.css">
<link rel="stylesheet" href="http://cdn.kendostatic.com/2012.3.1114/styles/kendo.default.min.css">
<div>
<div id="Grid"></div>
</div>
JavaScript
$("#Grid").kendoGrid({
dataSource: {
data: [
{ "Dept": "ACT", "A": 10, "B": 2010, "Total": 7542 },
{ "Dept": "BCT", "A": 20, "B": 2010, "Total": 7542 },
{ "Dept": "CCT", "A": 20, "B": 2010, "Total": 7542 },
{ "Dept": "CCT", "A": 20, "B": 2010, "Total": 7542 }
]
},
columns: [{
field: "Dept",
title: "Dapartment"
}, {
field: "A"
}, {
field: "B"
}, {
field: "Total"
}
]
});
$("#Grid").data('kendoGrid').dataSource.add({ "Dept": "CCT", "A": 20, "B": 2010, "Total": 7542 });