BoldSign®Effortlessly integrate e-signatures into your app with the BoldSign® API. Create a sandbox account!
beginEdit: function (args) { if(args.type = "beginEdit") args.cancel = true; } |
}).ClientSideEvents(eve=>eve.CellEdit("celledit").DataBound("databound"))) <script type="text/javascript"> function databound(args) { if (args.model.currentViewData.length > 5) args.model.editSettings.allowAdding = false; } function celledit(args) { var index = args.model.selectedRowIndex; var childid = $(args.cell).parent().next().find(".e-grid").attr("id") var gridobj = $("#"+childid ).ejGrid("instance"); var childRecords = gridobj.model.currentViewData; if (childRecords.length >= 1) args.cancel = true; } |
}).ClientSideEvents(eve=>eve.CellEdit("celledit").DataBound("databound"))) <script type="text/javascript"> function databound(args) { if (args.model.currentViewData.length > 5) args.model.editSettings.allowAdding = false; } function celledit(args) { var index = args.model.selectedRowIndex; var childid = $(args.cell).parent().next().find(".e-grid").attr("id") var gridobj = $("#"+childid ).ejGrid("instance"); var childRecords = gridobj.model.currentViewData; if (childRecords.length >= 1) args.cancel = true; } |
Jayaprakash K.
in react you can pass this props
Hi William,
Based on your code example, we suspect that you are using the tree grid component. If you are using tree grid component, your approach should work to disable editing for parent records.
If we misunderstand your query, please provide the following information.
The requested information will be helpful to proceed further.
Kindly get back to us for further assistance.
Regards,
Pon selva