Back to Devexpress

DxProgressBar.SetSuccessStatusOnComplete Property

blazor-devexpress-dot-blazor-dot-dxprogressbar-d5d70ff3.md

latest2.1 KB
Original Source

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

NuGet Package : DevExpress.Blazor

Declaration

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

Property Value

TypeDescription
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

DxProgressBar Class

DxProgressBar Members

DevExpress.Blazor Namespace