I have a Column directive that I wanted to disable the editing feature in some cell while the other is enable and using a custom edit cell via "edit" property
I try setting allowEditing to false on actionBegin for cell that I wanted to disable following a similar instruction here: https://helpej2.syncfusion.com/aspnetcore/documentation/grid/how-to/disable-editing-for-particular-row-cell#:~:text=You%20can%20disable%20the%20editing,Denmark%20is%20prevented%20from%20editing.&text=For%20batch%20mode%20of%20editing,use%20CellEdit%20event%20of%20Grid.
but it didn't work at all as every cell is editable with the custom edit
here is the function for actionBegin
here is the ColumnDirective that I have setup for custom edit view
|
Query |
Solution | |
|
Disable the celledit of particular column using allowEditing as false |
We can able to disable the cell edit for particular column when we map allowEditing as false in the column. We have shared sample and code snippets for your reference.
Code snippets:
| |
|
For disabling particular cell using action begin |
We have forwarded the query to the dependent team and will share further details within 2 business days on 25th March 2022. Until then we appreciate your patience. |
Thank you for the quick reply and will be looking forward to the further details that will be share.
|
cellEdit(args) {
if (args.columnName == 'duration' && args.value == 5) {
args.cancel = true;
}
} |
Thank you, that seems to work for me