A wizard-style steps component that guides users through a multi-step process with numbered navigation. RadzenSteps displays a visual progress indicator and manages sequential navigation through each step, ideal for forms, checkout flows, or setup wizards. Provides a structured way to break complex processes into manageable sequential stages. Features numbered circles showing current/completed/upcoming steps for visual progress, Next/Previous buttons for moving between steps or clicking on step numbers, optional form validation integration to prevent advancing with invalid data, CanChange event to control when users can move between steps, navigation to specific steps via SelectedIndex binding, and optional built-in Next/Previous buttons or use your own custom navigation. Each step is defined using RadzenStepsItem components. Use the CanChange event to validate data before allowing step transitions. Integrates with Blazor EditContext for form validation.
IComponent
IHandleEvent
IHandleAfterRender
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 RadzenSteps : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRenderBasic wizard with steps:
<RadzenSteps @bind-SelectedIndex=@currentStep>
<Steps>
<RadzenStepsItem Text="Personal Info">
<RadzenTextBox @bind-Value=@name Placeholder="Name" />
<RadzenTextBox @bind-Value=@email Placeholder="Email" />
</RadzenStepsItem>
<RadzenStepsItem Text="Address">
<RadzenTextBox @bind-Value=@street Placeholder="Street" />
<RadzenTextBox @bind-Value=@city Placeholder="City" />
</RadzenStepsItem>
<RadzenStepsItem Text="Review">
Review and submit...
</RadzenStepsItem>
</Steps>
</RadzenSteps>
Steps with validation and custom buttons:
<RadzenSteps ShowStepsButtons="false" CanChange=@OnCanChange>
<Steps>
<RadzenStepsItem Text="Step 1">Content...</RadzenStepsItem>
<RadzenStepsItem Text="Step 2">Content...</RadzenStepsItem>
</Steps>
</RadzenSteps>
<RadzenStack Orientation="Orientation.Horizontal" Gap="1rem">
<RadzenButton Text="Previous" Click=@PrevStep />
<RadzenButton Text="Next" Click=@NextStep />
</RadzenStack>A wizard-style steps component that guides users through a multi-step process with numbered navigation. RadzenSteps displays a visual progress indicator and manages sequential navigation through each step, ideal for forms, checkout flows, or setup wizards. Provides a structured way to break complex processes into manageable sequential stages. Features numbered circles showing current/completed/upcoming steps for visual progress, Next/Previous buttons for moving between steps or clicking on step numbers, optional form validation integration to prevent advancing with invalid data, CanChange event to control when users can move between steps, navigation to specific steps via SelectedIndex binding, and optional built-in Next/Previous buttons or use your own custom navigation. Each step is defined using RadzenStepsItem components. Use the CanChange event to validate data before allowing step transitions. Integrates with Blazor EditContext for form validation.
public RadzenSteps()public bool AllowStepSelect { get; set; }
| Type | Description |
|---|---|
| bool |
A callback that will be invoked when the user tries to change the step. Invoke the PreventDefault method to prevent this change.
public EventCallback<StepsCanChangeEventArgs> CanChange { get; set; }
| Type | Description |
|---|---|
| EventCallback<StepsCanChangeEventArgs> | A callback that will be invoked when the user tries to change the step. Invoke the PreventDefault method to prevent this change. |
<RadzenSteps CanChange=@OnCanChange>
</RadzenSteps>
@code {
void OnCanChange(RadzenStepsCanChangeEventArgs args)
{
args.PreventDefault();
}
}Gets or sets the change callback.
public EventCallback<int> Change { get; set; }
| Type | Description |
|---|---|
| EventCallback<int> | Gets or sets the change callback. |
Gets or sets the edit context.
public Forms.EditContext EditContext { get; set; }
| Type | Description |
|---|---|
| Forms.EditContext | Gets or sets the edit context. |
Gets the next button aria-label attribute.
public string NextAriaLabel { get; }
| Type | Description |
|---|---|
| string | Gets the next button aria-label attribute. |
Gets or sets the next button text.
public string NextText { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the next button text. |
Gets or sets the next button title attribute.
public string NextTitle { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the next button title attribute. |
Gets the previous button aria-label attribute.
public string PreviousAriaLabel { get; }
| Type | Description |
|---|---|
| string | Gets the previous button aria-label attribute. |
Gets or sets the previous button text.
public string PreviousText { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the previous button text. |
Gets or sets the previous button title attribute.
public string PreviousTitle { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the previous button title attribute. |
Gets or sets the selected index.
public int SelectedIndex { get; set; }
| Type | Description |
|---|---|
| int | Gets or sets the selected index. |
Gets or sets the selected index changed callback.
public EventCallback<int> SelectedIndexChanged { get; set; }
| Type | Description |
|---|---|
| EventCallback<int> | Gets or sets the selected index changed callback. |
Gets or sets whether to display the built-in Next and Previous navigation buttons below the step content. When false, you must provide your own navigation buttons using NextStep() and PrevStep() methods.
public bool ShowStepsButtons { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets whether to display the built-in Next and Previous navigation buttons below the step content. When false, you must provide your own navigation buttons using NextStep() and PrevStep() methods. |
Gets or sets the steps.
public RenderFragment Steps { get; set; }
| Type | Description |
|---|---|
| RenderFragment | Gets or sets the steps. |
Gets the steps collection.
public IList<RadzenStepsItem> StepsCollection { get; }
| Type | Description |
|---|---|
| IList<RadzenStepsItem> | Gets the steps collection. |
Adds the step.
public void AddStep(RadzenStepsItem step)
| Type | Name | Description |
|---|---|---|
| RadzenStepsItem | step | The step. |
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
| Type | Name | Description |
|---|---|---|
| Rendering.RenderTreeBuilder | __builder |
protected override string GetComponentCssClass()
| Type | Description |
|---|---|
| string |
Determines whether the specified index is selected.
protected bool IsSelected(int index, RadzenStepsItem step)
| Type | Name | Description |
|---|---|---|
| int | index | The index. |
| RadzenStepsItem | step | The step. |
| Type | Description |
|---|---|
| bool | true if the specified index is selected; otherwise, false. |
Programmatically navigates to the next visible step in the sequence. If already at the last step, this method does nothing. Respects CanChange validation.
public Task NextStep()
| Type | Description |
|---|---|
| Task | A task representing the asynchronous navigation operation. |
Programmatically navigates to the previous visible step in the sequence. If already at the first step, this method does nothing. Respects CanChange validation.
public Task PrevStep()
| Type | Description |
|---|---|
| Task | A task representing the asynchronous navigation operation. |
Removes the step.
public void RemoveStep(RadzenStepsItem item)
| Type | Name | Description |
|---|---|---|
| RadzenStepsItem | item | The item. |
public override Task SetParametersAsync(ParameterView parameters)
| Type | Name | Description |
|---|---|---|
| ParameterView | parameters |
| Type | Description |
|---|---|
| Task |