Hi
I have the following Radzen Progress Bar in my page:
<RadzenPanel>
<RadzenProgressBar Value="100" ShowValue="false"
Mode="ProgressBarMode.Indeterminate" Visible="@IsActiveSlide"
@rendermode="@RenderMode.InteractiveServer" />
</RadzenPanel>
the variable IsActiveSlide is changed inside a on click event but the new value is not reflected in the progress bar and continue invisible.
The abbreviate code of the onclick is the following:
private async Task OnClickRunAsync(string text)
{
try
{
// Abreviated her comes a await for call a function in the backend.
IsActiveSlide = true;
await InvokeAsync(() => StateHasChanged());
}
// program continue
The event is call as following:
<RadzenButton Click=@(() => OnClickRunAsync("Execute Console App"))
Text=" Run DeadHead Booking Agent Now" Icon="Sprint"
ButtonStyle="Radzen.ButtonStyle.Primary"
@rendermode="@RenderMode.InteractiveServer">
</RadzenButton>
I tried using:
StateHasChanged();
without success.
The program is Blazor, NET 8.0 Blazor Server.
Some one has any idea?