New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Defines the fluent API for configuring the Kendo Stepper for ASP.NET MVC.

Definition

Constructors

Initializes a new instance of the Stepper class.

C#
public StepperBuilder(Stepper component)
Parameters:componentStepper

The component.

Example:
C#
@(Html.Kendo().Stepper()
.Name("stepper")
.Label(true)
)

Methods

Configures the client-side events.

C#
public StepperBuilder Events(Action<StepperEventBuilder> configurator)
Parameters:configuratorAction<StepperEventBuilder>

The client events action.

Returns:

StepperBuilder

Example:
C#
@( Html.Kendo().Stepper()
.Name("Stepper")
.Events(events =&gt; events
.Activate("onActivate")
)
)

Indicates whether the Steps in the Stepper will render their indicator element (the icon or number placed in a circle above the Step label).

C#
public StepperBuilder Indicator(bool value)
Parameters:valuebool

The value that configures the indicator.

Returns:

StepperBuilder

Example:
C#
@(Html.Kendo().Stepper()
.Name("stepper")
.Indicator(true)
)

Indicates whether the Steps in the Stepper will render their label element (the text placed below the Step indicator circle).

C#
public StepperBuilder Label(bool value)
Parameters:valuebool

The value that configures the label.

Returns:

StepperBuilder

Example:
C#
@(Html.Kendo().Stepper()
.Name("stepper")
.Label(true)
)

Indicates whether the Stepper will force the user to follow the Steps sequence or not. If set to "false" it will allow the user to select any step. If in its default state ("true") the user will be able to select the step immediately after the currently selected step or any previous step.

C#
public StepperBuilder Linear(bool value)
Parameters:valuebool

The value that configures the linear.

Returns:

StepperBuilder

Example:
C#
@(Html.Kendo().Stepper()
.Name("stepper")
.Linear(true)
)

The type of the Stepper orientation (horizontal or vertical).

C#
public StepperBuilder Orientation(StepperOrientationType value)
Parameters:valueStepperOrientationType

The value that configures the orientation.

Returns:

StepperBuilder

Example:
C#
@(Html.Kendo().Stepper()
.Name("stepper")
.Orientation(StepperOrientationType.Horizontal)
)

Applicable for scenarios when keyboard is used for navigation. Indicates whether the selection will change upon focus change or it will require additional action (Enter or Spacebar key press) in order to select the focused step.

C#
public StepperBuilder SelectOnFocus(bool value)
Parameters:valuebool

The value that configures the selectonfocus.

Returns:

StepperBuilder

Example:
C#
@(Html.Kendo().Stepper()
.Name("stepper")
.SelectOnFocus(true)
)

Array of steps to be rendered in the Stepper. If the array contains objects, their fields will be used for each Step. If the array contains strings, those will be used as Step labels.

C#
public StepperBuilder Steps(Action<StepperStepFactory> configurator)
Parameters:configuratorAction<StepperStepFactory>

The action that configures the steps.

Returns:

StepperBuilder