Skip to main content
All docs
V24.1

DxProgressBar.SetSuccessStatusOnComplete Property

Specifies whether the progress status should be changed to Success when the Value reaches the MaxValue

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public bool SetSuccessStatusOnComplete { get; set; }

Property Value

Type Description
Boolean

true to change the status to Success automatically; otherwise, false.

Remarks

You can use the Status property to specify the progress status. If the property is not specified, the component automatically sets the Success status when the Value reaches the MaxValue.

Progress Bar switches to Success status

Set the SetSuccessStatusOnComplete property to false to disable this behavior.

<DxProgressBar Value="value" SetSuccessStatusOnComplete="false" />

@code {
    int value = 0;
    bool running;

    private void RunProgress() {
        if (running) return;
        running = true;
        InvokeAsync(async () => {
            while (running && value < 100) {
                await Task.Delay(20);
                value++;
                StateHasChanged();
            }
            running = false;
        });
    }
}

Progress Bar does not switch to Success status

See Also