I wanna set editable false for some rows (not for all) in kendo grid. How do I do it ? Is there any way to set grid row properties from outside. I will catch rows when the grid row data bound. But I have no idea to set row editable false.
function GridOnDataBound(arg) {
dataView = this.dataSource.view();
var grid = $("#grid").data("kendoGrid");
var rowObjs = grid.tbody[0].rows;
for (var i = 0; i < dataView.length; i++) {
var row = rowObjs[i];
// row.className = "gridWhiteRow";
if (dataView[i].AprPrtyKy === 8941) {//low
// row.className = "gridGreenRow";
}
if (dataView[i].AprPrtyKy === 8940) {//hight
// row.className = "gridYellowRow";
}
if (dataView[i].AprPrtyKy === 8944) {//urgent
row.className = "gridRedRow";
}
if (dataView[i].AprPrtyKy === 8942) {//normal
// row.className = "gridAquaRow";
}
if (dataView[i].AprPrtyKy === 8945) {//normal
// row.className = "gridPurpleRow";
}
if (dataView[i].AprStsKy === 8946) {
row.className = "gridGreenRow";
}
}
}
Please help. thanks ! :)