I have a subgrid i have JS code that loads every time the subgrid is supposedly refreshed by adding, deleting record. When i add record in the subgrid, it fires up the code and enables the field in the main form. But when i delete the record in the subgrid, it disables the field but the form does not refresh so the field still shows as enabled unless i manually hit refresh on the form. Why does it not refresh on deletion?
I am using the gridContext.addOnLoad(loadFunction) function and i thought this should work for deletions as well.
What can I do to fix this?