I have a column array object which is bound to columns property of kendo grid. If I add a command in the array, the button appears but the edit event is not firing.
Also in edit mode I need to make the checkboxes in each column as enabled and update it based on the column name.
I am adding the columns using below code and biding to columns property of kendo grid.
var titleDefs = [
"User Name", "Admin", "Print"
];
// Field Definition
var fieldDefs = [
"UserName", "Admin", "Print"
];
var columnDefs = [];
for (var i = 0; i < titleDefs.length; i++) {
if (i == 0)
columnDefs.push({
title: titleDefs[i], field: fieldDefs[i],
});
else
columnDefs.push({
title: titleDefs[i], field: fieldDefs[i], template: '<input id=chk' + fieldDefs[i] + ' name=chk' + fieldDefs[i] + ' type="checkbox" #= ' + fieldDefs[i] + ' ? "checked=checked style=display:block disabled=disabled" : " style=display:none" # ></input>',
});
}
columnDefs.push({ command: "edit", title:"", width:"100px"});
Please help me in this.