Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[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.

Set the SetSuccessStatusOnComplete property to false to disable this behavior.

razor
<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;
        });
    }
}

See Also