Hi,
I have doubt is it possible to make read only fields depend upon checkbox selection as shown in screen shot.
. I need N.A field to be read only when checkbox is checked
Hey thejas.pateel,
You can achieve that behavior like this
{
type : 'check',
field : 'allow',
listeners : {
toggle : ({ checked }) => {
grid.columns.get('name').editor = !checked;
grid.columns.get('name').readOnly = checked;
}
}
}
https://www.bryntum.com/docs/grid/api/Grid/column/CheckColumn
Best regards,
Márcio
To disable editing on certain fields/columns on certain records the best thing would be to listen for beforeCellEditStart
https://bryntum.com/docs/grid/api/Grid/feature/CellEdit#event-beforeCellEditStart
Inside of that you could return false if a condition is met