I have editable subgrid and rollup fields on an entity that rollups an attribute value of subgrid. On the parent entity I am refreshing the roll-up fields value on change of another field via JS.
The problem is the user after changing the value in the sub-grid directly changes the filed on which I have called the refresh roll-up function. As a result, the refresh roll-up function refreshes the roll-up value with the old value of the subgrid attribute as the grid has not yet committed its value to the back-end because user did not saved the value on subgrid.
Is there a way i can check if the onChange event of the subgrid attribute has completed its execution and then call the refresh roll-up function ?
Thanks in advance.