I was wondering whether it's possible to set some rows of a datagrid to uneditable depending on one of their fields in the database. One of the datagrids in my application is for incoming stock, and once the stock is checked, it needs to become uneditable. I would rather not use something like this:
- Code: Select all
function onCellDoubleClick(foundsetindex, columnindex, record, event) {
if (record.checked) {
elements.table.stopCellEditing()
}
}
because it feels a little clunky. Is there any way I can do this without stopCellEditing()?
Thanks,
Alasdair