When I create a page with a data grid and another page that serves as "edit dialog" for the data in the grid (everything auto-generated by Radzen), the dialog can be closed in two different ways: Either by clicking "Save" which performs an Update to the entity that is edited or by clicking cancel/X which just closes the dialog.
When I click save and the dialog closes, the changes are reflected in the gird.
Now, when I remove the CloseDialog from the Save Button handler, the entity is still saved but when I then close the dialog afterwards (after previously clicking save) and it gets closed, the data in the grid is NOT updated this time.
I checked the generated code and saw that the only difference is that in case of the "Save&Close", the edited entity is returned while cancel/X just returns null. However, this return value is not processed in the code as far as I can see. So why does this make a difference for the grid?
How does the grid know that it needs to refresh in one case and not in the other? Is there some kind of hidden logic in the grid component for this? Any help would be nice since I try to implement a separate save button in the edit dialog that does not close the dialog but when the dialog is then closed by X, I want to make sure that the grid is updated in case the entity might have changed.