Checkbox editor sample
HTML
<script src="http://cdn.kendostatic.com/2013.1.514/js/kendo.all.min.js"></script>
<link rel="stylesheet" href="http://cdn.kendostatic.com/2013.1.514/styles/kendo.common.min.css">
<link rel="stylesheet" href="http://cdn.kendostatic.com/2013.1.514/styles/kendo.default.min.css">
<div id="grid"></div>
JavaScript
$(document).ready(function () {
var columns = [
{
field: "intVal",
title: "Int Val",
},
{
field: "boolVal",
title: "Bool Val",
type: "boolean",
template: '<input type="checkbox" #= boolVal ? checked="checked" : "" # ></input>'
}
];
var localData = [
{ boolVal: true, intVal: 1 },
{ boolVal: false, intVal: 2 }
];
$('#grid').kendoGrid({
scrollable: false,
sortable: true,
resizable: true,
reorderable: false,
dataSource: localData,
columns: columns,
editable: "incell",
});
});