The described problem occurs because the async data comes after showing the dialog. You need to redraw the component here by using the Dialog Refresh() method.
I have modified the example with the above approach. Please run and test this REPL link.
answered on 14 Feb 2022, 09:11 AM
| edited on 14 Feb 2022, 12:51 PM
Hi Telerik,
I have a similar async problem with Dialog, please check my scenario in this example link. In this scenario I expecting to see the dialog after 2 seconds when you press the button 'Show', so seems that Dialog doesn't like to be called asynchronously and leads to my question: is there any async-oriented call to show the Dialog or any workaround to make it work in this kind of scenario? Thanks in advance.
Update:
I've solved the problem by replacing the line 29 from DialogRef.Refresh() to StateHasChanged() so the UI is manually refreshed when the async Task finishes