I am working with two Telerik Dialogs in a Blazor page.
One dialog is shown when an AP Strategy validation is required, and the other dialog is a confirmation popup.
Here is the markup:
When the AP Strategy dialog is visible (IsApStrategyValidationVisible = true
), the user clicks OK, which calls this method:
Problem
When debugging step by step, it works fine: the AP Strategy dialog closes, and then the confirmation dialog opens.
But when running normally (without debugger), both
IsApStrategyValidationVisible is false
andIsDialogBoxVisible
istrue
at the same time. This causes the confirmation dialog not to show properly.
It looks like Blazor/Telerik is not processing the closing of the first dialog before the second is opened.
Question
How can I reliably close one TelerikDialog and then open another in Blazor, without them conflicting?
Is there a recommended pattern (maybe using a single state/enum) for handling multiple dialogs?