Still not been able to implement this.
What I essentially want to do is change the close modal on save behaviour.
In the Add form when close modal on save is checked then the modal closes.
In the Add form when close modal on save is not checked then the modal stays open and after save of the insert form then renders the modal as the edit form, so you can make an insert and incremental edits without closing.
In the Edit form when close modal on save is checked then the modal closes.
In the Edit form when close modal on save is not checked then the modal stays open and refreshes the edit form. Now I think this is what it is supposed to do but it only refreshes the datagrid in the background. If you had a callbackBeforeUpdate which modifies a field before update and the modal is set to stay open it does not refresh the edit form with that change.