blazor-devexpress-dot-blazor-a2604a99.md
A progress bar component.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
public class DxProgressBar :
DxComponentBase
The DevExpress Progress Bar for Blazor (<DxProgressBar>) allows you to inform users about the status of ongoing processes.
Follow the steps below to add a Progress Bar component to an application:
<DxProgressBar>…</DxProgressBar> markup to a .razor file.Refer to the following list for the component API reference: DxProgressBar Members.
Blazor Progress Bar does not support static render mode. Enable interactivity to use the component in your application. Refer to the following topic for more details: Enable Interactive Render Mode.
The Value property specifies the current progress bar value. MinValue and MaxValue properties limit the range of accepted values.
The progress is measured in percentages and calculated by the following formula:
(Value - MinValue) / (MaxValue - MinValue) * 100.
Run Demo: Progress Bar - Overview
<DxProgressBar MinValue="100" MaxValue="500" Value="200" />
If the current progress is unknown, you can display an indeterminate progress bar.
Use the Status property to specify the progress status. The status affects bar appearance, the icon, and the default label.
If the Status property is not specified, the component automatically sets the Success status when Value matches MaxValue. You can set the SetSuccessStatusOnComplete property to false to disable this behavior.
The progress bar label displays information about progress status. The label shows the progress in percentages, and the corresponding text for the Success, Pause, and Error status values.
Run Demo: Indeterminate Progress Bar
Use the Label property to customize the progress bar label.
<DxProgressBar Label="Loading..." ... />
You can use the LabelPosition property to specify the position of the label relative to the progress bar. To hide the label, set the ShowLabel property to false.
When progress cannot be estimated or it is not necessary to indicate the progress numerically, set the Indeterminate property to true to display a moving bar.
Run Demo: Indeterminate Progress Bar
<DxProgressBar Label="Loading..." Indeterminate="true" />
The DxProgressBar component renders a linear horizontal progress bar. Use the Type property to change the bar type to vertical or circular.
<DxProgressBar Type="ProgressBarType.Horizontal" Value="35" />
<DxProgressBar Type="ProgressBarType.Vertical" Value="35" />
<DxProgressBar Type="ProgressBarType.Circular" Value="35" />
Object ComponentBase DxComponentBase DxProgressBar
See Also