selectable.checkboxSelection Boolean
(default: false)
When set to true
, the grid.selectable will not be initialized. Should be enabled when both checkbox selection for the Grid and cell aggregates are required.
Example
<div id="grid"></div>
<script>
$("#grid").kendoGrid({
columns: [
{ selectable: true },
{ field: "name" },
{ field: "age" }
],
dataSource: {
data: [
{ id: 1, name: "Jane Doe", age: 30 },
{ id: 2, name: "John Doe", age: 33 }
],
schema: {
model: {
id: "id"
}
}
},
selectable: {
mode: "multiple, row",
cellAggregates: true,
checkboxSelection: true
},
statusBarTemplate: ({aggregates}) => `Count: ${aggregates.count}, Sum: ${aggregates.sum}`
});
</script>