How to disable a editable grid row by JavaScript
This post is only available in English.
In order to lock a row/field in the editable grid you should follow the below steps:
-
Open solution explorer.
-
In the entity list, open the appropriate entity, select the Events tab.


-
Add the JavaScript library in Form Libraries section.
-
In the Event Handlers section, select OnRecordSelect option in Event field.

- Add the function disableEditableGridRow.

- The disableEditableGridRow code:
function disableEditableGridRow(context){ var currentRow = context.getFormContext().data.entity; currentRow.attributes.forEach(function (attribute, i) { //add your custom conditions here var attributeToDisable = attribute.controls.get(0); attributeToDisable.setDisabled(true); }); }
You can add your custom conditions if you want to lock a specific fields in the row.