Editable grid is an awesome way to manage related child records effectively and efficiently within few clicks and I personally love it for the same. For this kind of requirements, building a custom grid was the story for long time and now Editable grid is a real savior.
Scenario: In account form we have contact editable grid. Whenever the account name is DisableFields(felt lazy to find another field :P), disable all the fields in the editable grid row.
- Open form editor and then open editable grid properties
- Navigate to Events tab and select Event named OnRecordSelect
- Add a function to the event.While adding function do not forget to enable "Pass execution context as first parameter"
To access the current row(entity record) we need the editable grid's formcontext which is a part of the context passed as first parameter. From there the rest of the code is similar to our traditional js implementations.
Hope this helps!