Hello,
Unfortunately this sample does not apply for my setup.
In my OnCommandClicked event I have to set to trigger the visibility of an SfDialog box that then pops up with different values that can be updated. Upon clicking the save button on the dialog, it saves the changes back to the database and closes the dialog box. I have tried implementing the refresh method in the same method that closes the dialog box and that does not trigger any update.