blazor-devexpress-dot-blazor-dot-dxprogressbar-d5d70ff3.md
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
[Parameter]
public bool SetSuccessStatusOnComplete { get; set; }
| Type | Description |
|---|---|
| Boolean |
true to change the status to Success automatically; otherwise, false.
|
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.
<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