Hi,
I want to know is there any way to set group column by clicking on any other check box on same page outside the grid.
<div id="grid"></div>
<input type="checkbox" id="chkOrderGroup" />
//script
$("#grid").kendoGrid({
columns: [
{ field: "name" },
{ field: "age",
groupFooterTemplate: "Total: #= count #"
}
],
dataSource: {
data: [
{ name: "Jane Doe", age: 30 },
{ name: "John Doe", age: 30 }
]
}
});
$(document).ready(function () {
$('#chkOrderGroup:checkbox').change(function () {
var g = $("#grid").data("kendoGrid")
var objGroup = g.dataSource.group;
// ******************************* Require code to set column with name "age" as group column when check box is checked *****
});
Require code to set column with name "age" as group column when check box is checked.
I want to know is there any way to set group column by clicking on any other check box on same page outside the grid.
<div id="grid"></div>
<input type="checkbox" id="chkOrderGroup" />
//script
$("#grid").kendoGrid({
columns: [
{ field: "name" },
{ field: "age",
groupFooterTemplate: "Total: #= count #"
}
],
dataSource: {
data: [
{ name: "Jane Doe", age: 30 },
{ name: "John Doe", age: 30 }
]
}
});
$(document).ready(function () {
$('#chkOrderGroup:checkbox').change(function () {
var g = $("#grid").data("kendoGrid")
var objGroup = g.dataSource.group;
// ******************************* Require code to set column with name "age" as group column when check box is checked *****
});
Require code to set column with name "age" as group column when check box is checked.