The ListGrid is populated by an add button that calls ListGrid.startEditingNew().
This also means there's no asynchronous action to save changes. The user input is discarded immediately after the RemoveRecordClick handler fires, and your handler code has exited (meaning you have declined to cancel() the event).
The simplest way to execute something at this time is just to use the core GWT Scheduler API to schedule an action when RemoveRecordClick. It doesn't matter how long the delay is, it can be minimal - there's no race condition possibly because, as explained above, the edits are discarded immediately.
Leave a comment: