Hi Bernard,
Greetings from Syncfusion support.
Based on your query, you want to disable edit
for a particular cell based on the value of the cell. We can achieve this
requirement by disabling the `column.allowEditing` property for the
column for the particular value and enabling the same for other values in the `actionBegin`
event of the EJ2 grid.
Please refer the below code example:
|
actionBegin {
var grid =
docuemnt.getElementsByClassName('e-grid')[0].ej2_instances[0];
if (args.requestType
=== 'beginEdit') {
if (args.rowData.Freight
=== 65.83) {
grid.getColumnByField('Freight').allowEditing
= false;
} else
{
grid.getColumnByField('Freight').allowEditing
= true;
}
}
}
|
Please get back to us for further details.
Regards,
Joseph I.