I have a dialog, where the caller has subscribed on the Close event.
When that happens, I call StateHasChanged();
Because of this, the RowSelect is called, while I do not expect this.
Is this expected behaviour?
OnInit
dialogService.OnOpen += Open;
dialogService.OnClose += Close;
Close subscriber
async void Close(dynamic result)
{
await InvokeAsync(() => { StateHasChanged(); });
}
Grid
<RadzenGrid @ref="FunctionsGrid" AllowFiltering="true" FilterCaseSensitivity="FilterCaseSensitivity.CaseInsensitive"
AllowPaging="true" PageSize="4" AllowSorting="true" Data="@Functions"
Value="@function" TItem="Data.Entities.Function" ColumnWidth="200px"
RowSelect="(args => RedirectToFunctionDetail(args.Id))">