Greetings from Syncfusion.
We have default "readOnly" property which disables editing for all rows. Since your requirement is to make only a specific row read-only, we recommend using the actionBegin and cellEdit events.
For example, we’ve implemented a read-only restriction for "Task ID 3" by canceling edit, taskbar modification, and dialog interactions within these events. This ensures Task ID 3 remains non-editable across all UI interactions.
Refer the below code snippet and sample for your reference.
Code-Snippet:
const onActionBegin = (args) => { if (args.requestType === 'beforeOpenEditDialog') { const rowData = args.rowData; // Example: Make task with ID 3 read-only if (rowData.TaskID === 3) { if (args.requestType === 'taskbarediting' && args.data.TaskID == 3) { function cellEdit(args) { if (args.rowData.TaskID == 3) { actionBegin={onActionBegin} |
Sample - M3mcvokw (duplicated) - StackBlitz
Regards,
Sridharan