This is a Blazor Server Project.
I'm using the following code to switch to another Radzen tab.
<RadzenTabs Style="width: 865px; height: 665px" @bind-SelectedIndex=@selectedTab >
protected async System.Threading.Tasks.Task Button0Click(Microsoft.AspNetCore.Components.Web.MouseEventArgs args)
{
selectedTab = 1;
StateHasChanged();
try
{
Thread.Sleep(3000);
}
catch(Exception error)
{
}
}
The behaviour I'm expecting is an immediate tab switch followed by a long-running operation. But the tab change only happens after waiting for 3 seconds.