JSFiddle - React, Tailwind, and code Playground
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">
<script src="http://acesopharma.in/scripts/jquery.fixedtable.js"></script>
<div>
<button type="button" id="removeallrow">Click Me!</button>
<div id="Grid"></div>
</div>
JavaScript
$("#Grid").kendoGrid({
dataSource: {
data: [
{ "Dept": "ACT", "A": 10, "B": 2010, "C": 2010, "D": 2010, "Total": 7542 },
{ "Dept": "BCT", "A": 20, "B": 2010, "C": 2010, "D": 2010, "Total": 7542 },
{ "Dept": "CCT", "A": 20, "B": 2010, "C": 2010, "D": 2010, "Total": 7542 },
{ "Dept": "CCT", "A": 20, "B": 2010, "C": 2010, "D": 2010, "Total": 7542 }
]
},
columns: [{
field: "Dept",
width: 110,
title: "Dapartment"
}, {
field: "A",
width: 110,
}, {
field: "B",
width: 110
}, {
width: 110,
field: "Total"
}, {
width: 110,
field: "C"
}, {
width: 110,
field: "D"
}
]
});
function removeallrow()
{
//$("#Grid").data('kendoGrid').dataSource.data([]);
}
$("#removeallrow").click( function()
{
$("#Grid").data('kendoGrid').dataSource.data([]);
}
);
$(document).ready(function () {
$(".k-grid-content").attr('id','001')
});
$("#001").fixedTable({
width: 520,
height: 350,
fixedColumns: 1,
classHeader: "fixedHead",
classFooter: "fixedFoot",
classColumn: "fixedColumn",
fixedColumnWidth: 110,
outerId: '001'
});