I've modeled a Dialog from the sample code. The dialog is opened with no problems, but it will never close unless I refresh the page. Whether I click OK, Cancel or choose the X, it stays open. What am I missing?
Opening the Dialog:
<RadzenButton Text="Open" Icon="assignment_ind" Click="@(args => DialogService.Open<UserDetail>($"ID {SelectedUser.O365ID}",
new Dictionary<string, object>() { { "ID", SelectedUser.O365ID } },
new DialogOptions(){ Width = "700px", Height = "530px", Left = "calc(50% - 350px)", Top = "calc(50% - 265px)" }))" Style="margin-bottom:20px" />
As a part of the UserDetail.razor page, I have the following:
<div class="row">
<div class="col-md-12">
<RadzenButton Click="@((args) => dialogService.Close(true))" Text="OK" Style="margin-bottom: 10px; width: 150px" />
<RadzenButton Click="@((args) => dialogService.Close(false))" ButtonStyle="ButtonStyle.Secondary" Text="Cancel" Style="margin-bottom: 10px; width: 150px" />
</div>