Hi Parth Rawal,
Thanks for contacting Syncfusion Forums.
Query: Disable row editing with Batch mode edit settings
We suggest you use “cellEdit” event to disable editing for row based on field value for “Batch” edit mode instead of “actionBegin” event. Setting args.cancel to true in cellEdit event will disable editing.
Please check the below code snippet,
|
<ejs-treegrid #treegrid [dataSource]='data' idMapping='TaskID' parentIdMapping='parentID'
[treeColumnIndex]='1' [editSettings]='editSettings' [toolbar]='toolbar'
[selectionSettings]='selectionSettings' (cellEdit)='cellEdit($event)'>
</ejs-treegrid>
cellEdit(args) {
if (args.rowData.isParent == true) {
args.cancel = true; //prevented RowEditing when`isParent` value is true
}
} |
Please check the below sample,
Please check the below API help documentation,
Kindly get back to us for further assistance.
Regards,
Padmavathy Kamalanathan