Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

DevExpress-Examples/blazor-grid-layout-stepper

Repository files navigation

Blazor - Implement a Stepper Component

A Stepper is a UI component that guides users through a sequential process by breaking complex tasks into smaller, manageable steps. It is commonly used for e-commerce checkouts, account registrations, and user onboarding.

This example demonstrates how to build a custom Stepper component for Blazor applications using DevExpress DxGridLayout. The component supports both horizontal and vertical orientation, and can fit your specific design requirements.

Implementation Details

The implementation consists of two components: DxStepper and DxStep.

<DxStepper Orientation=Orientation.Vertical
@bind-SelectedIndex="@SelectedIndex">
<Steps>
<DxStep Label="Contact Details" IconCssClass="oi oi-person">

DxStep>
Steps>
DxStepper>

DxStepper

The DxStepper component uses DxGridLayout to manage the order and layout of steps:

  • Nodes (steps) are placed in even columns/rows.
  • Connectors (lines between steps) are placed in odd columns/rows.
  • Labels are positioned below (horizontal orientation) or next to (vertical orientation) nodes.

DxStepper implements the following properties:

  • Steps - Specifies the collection of steps.
  • SelectedIndex - Returns the zero-based index of the selected step.
  • SelectedIndexChanged event - Fires when the step is selected.
  • Orientation - Specifies whether steps are arranged vertically or horizontally.

DxStep Component

The DxStep component implements an individual step in the stepper. DxStep components should be declared within the Steps collection.

Each step can contain:

  • Custom content (the ChildContent property)
  • An icon (the IconCssClass property)
  • Display text (the Text property)
  • A label (the Label property)

Files to Review

Documentation

More Examples

Does This Example Address Your Development Requirements/Objectives?

(you will be redirected to DevExpress.com to submit your response)

About

Build a custom Stepper component for Blazor applications using DevExpress DxGridLayout.

Topics

Resources

Readme

License

View license

Stars

Watchers

Forks

Contributors