A linear progress bar component for indicating task completion or ongoing processes. RadzenProgressBar displays progress horizontally with determinate (specific value) or indeterminate (ongoing) modes. Provides visual feedback about the status of lengthy operations like file uploads, data processing, or multi-step workflows. Supports determinate mode showing specific progress value (0-100%) with a filling bar, indeterminate mode with animated bar indicating ongoing operation without specific progress, optional percentage or custom unit value display overlay, configurable Min/Max values for non-percentage scales, various semantic colors (Primary, Success, Info, Warning, Danger), custom template to override default value display, and ARIA attributes for screen reader support. Use determinate mode when you can calculate progress percentage (e.g., file upload, form completion). Use indeterminate mode for operations with unknown duration (e.g., waiting for server response).
IComponent
IHandleEvent
IHandleAfterRender
RadzenComponent.SetParametersAsync
RadzenComponent.OnAfterRenderAsync
RadzenComponent.RaiseContextMenu
RadzenComponent.RaiseMouseEnter
RadzenComponent.AddContextMenu
RadzenComponent.RaiseMouseLeave
RadzenComponent.OnBecameInvisible
RadzenComponent.DefaultCulture
RadzenComponent.IsJSRuntimeAvailable
ComponentBase.OnInitializedAsync
ComponentBase.OnParametersSet
ComponentBase.OnParametersSetAsync
ComponentBase.StateHasChanged
ComponentBase.ShouldRender
ComponentBase.OnAfterRender
ComponentBase.InvokeAsync
ComponentBase.DispatchExceptionAsync
ComponentBase.RendererInfo
ComponentBase.Assets
ComponentBase.AssignedRenderMode
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
public class RadzenProgressBar : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRenderDeterminate progress bar:
<RadzenProgressBar Value=@progress Max="100" ShowValue="true" ProgressBarStyle="ProgressBarStyle.Primary" />
@code {
double progress = 45; // 45%
}
Indeterminate progress bar for loading:
@if (isLoading)
{
<RadzenProgressBar Mode="ProgressBarMode.Indeterminate" ProgressBarStyle="ProgressBarStyle.Info" />
}
Custom range and unit:
<RadzenProgressBar Value=@bytesDownloaded Min="0" Max=@totalBytes Unit="MB" ShowValue="true" />A linear progress bar component for indicating task completion or ongoing processes. RadzenProgressBar displays progress horizontally with determinate (specific value) or indeterminate (ongoing) modes. Provides visual feedback about the status of lengthy operations like file uploads, data processing, or multi-step workflows. Supports determinate mode showing specific progress value (0-100%) with a filling bar, indeterminate mode with animated bar indicating ongoing operation without specific progress, optional percentage or custom unit value display overlay, configurable Min/Max values for non-percentage scales, various semantic colors (Primary, Success, Info, Warning, Danger), custom template to override default value display, and ARIA attributes for screen reader support. Use determinate mode when you can calculate progress percentage (e.g., file upload, form completion). Use indeterminate mode for operations with unknown duration (e.g., waiting for server response).
public RadzenProgressBar()Gets or sets the ARIA label for accessibility support. Announced by screen readers to describe the progress bar's purpose (e.g., "File upload progress").
public string AriaLabel { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the ARIA label for accessibility support. Announced by screen readers to describe the progress bar's purpose (e.g., "File upload progress"). |
Gets or sets the maximum value of the progress range representing 100% completion.
public double Max { get; set; }
| Type | Description |
|---|---|
| double | Gets or sets the maximum value of the progress range representing 100% completion. |
Gets or sets the minimum value of the progress range. Use non-zero values for custom progress scales (e.g., 0-1000 for byte counts).
public double Min { get; set; }
| Type | Description |
|---|---|
| double | Gets or sets the minimum value of the progress range. Use non-zero values for custom progress scales (e.g., 0-1000 for byte counts). |
Gets or sets the progress bar mode determining the visual behavior. Determinate shows specific progress, Indeterminate shows continuous animation for unknown duration.
public ProgressBarMode Mode { get; set; }
| Type | Description |
|---|---|
| ProgressBarMode | Gets or sets the progress bar mode determining the visual behavior. Determinate shows specific progress, Indeterminate shows continuous animation for unknown duration. |
Progress in range from 0 to 1.
protected double NormalizedValue { get; }
| Type | Description |
|---|---|
| double | Progress in range from 0 to 1. |
Gets or sets the semantic color style of the progress bar. Determines the progress bar color: Primary, Success, Info, Warning, Danger, etc.
public ProgressBarStyle ProgressBarStyle { get; set; }
| Type | Description |
|---|---|
| ProgressBarStyle | Gets or sets the semantic color style of the progress bar. Determines the progress bar color: Primary, Success, Info, Warning, Danger, etc. |
Gets or sets whether to display the progress value as text overlay on the progress bar. When true, shows the value with the unit (e.g., "45%"). Set to false for a cleaner look.
public bool ShowValue { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets whether to display the progress value as text overlay on the progress bar. When true, shows the value with the unit (e.g., "45%"). Set to false for a cleaner look. |
Gets or sets a custom template for rendering content overlaid on the progress bar. Use this to display custom progress information instead of the default value/percentage display.
public RenderFragment Template { get; set; }
| Type | Description |
|---|---|
| RenderFragment | Gets or sets a custom template for rendering content overlaid on the progress bar. Use this to display custom progress information instead of the default value/percentage display. |
Gets or sets the unit text displayed after the value (e.g., "%", "MB", "items"). Only shown when ShowValue is true.
public string Unit { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the unit text displayed after the value (e.g., "%", "MB", "items"). Only shown when ShowValue is true. |
Gets or sets the current progress value. Should be between Min and Max. Values outside this range are clamped.
public double Value { get; set; }
| Type | Description |
|---|---|
| double | Gets or sets the current progress value. Should be between Min and Max. Values outside this range are clamped. |
Gets or sets a callback invoked when the progress value changes. Note: This is an Action, not EventCallback. For data binding, the Value property is typically bound directly.
public Action<double> ValueChanged { get; set; }
| Type | Description |
|---|---|
| Action<double> | Gets or sets a callback invoked when the progress value changes. Note: This is an Action, not EventCallback. For data binding, the Value property is typically bound directly. |