Your example works, but when I transferred to my grid, it doesn't work.
I want to make a cell read only based on the value of another cell in the row. Can you correct/simplify below?
The breakpoint is getting hit at rd.CostCenter == "1296" but the cell remains editable.
var colM = [
{ title: "Reserve", width: 70, includeInSum: true, summary: { type: "sum" }, dataIndx: "STE_Hours_Reserved", datatype: "float", align: "right",
render: function (ui) {
var rd = ui.rowData;
var zz = rd.pq_cellprop = rd.pq_cellprop || {}
zz[ui.dataIndx] = {edit: true};
if (rd.CostCenter == "1296") {
zz[ui.dataIndx] = { edit: false };
}
}
]
}
];