How to determine Edit Dialog clicked with Save or Cancel

Using default Radzen generated code, how to determine user open Edit Dialog click Save or Cancel

  var dialogResult = await DialogService.OpenAsync<EditUserMst>("Edit User Mst", new Dictionary<string, object>() { { "USER_ID", args.USER_ID } });

The OpenAsync method returns whatever value is passed to the Close method of the dialog service or null otherwise. You can simply check if dialogResult is null.

1 Like