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

Defines the fluent API for configuring the Kendo UI Stepper

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class StepperBuilder : WidgetBuilderBase<Stepper, StepperBuilder>, IHtmlContent

Inheritance: objectHelperResultWidgetBuilderBase<Stepper, StepperBuilder>StepperBuilder

Implements: IHtmlContent

Inherited Members WidgetBuilderBase<Stepper, StepperBuilder>.ToComponent()WidgetBuilderBase<Stepper, StepperBuilder>.Expression(string)WidgetBuilderBase<Stepper, StepperBuilder>.Explorer(ModelExplorer)WidgetBuilderBase<Stepper, StepperBuilder>.Name(string)WidgetBuilderBase<Stepper, StepperBuilder>.Deferred(bool)WidgetBuilderBase<Stepper, StepperBuilder>.HtmlAttributes(object)WidgetBuilderBase<Stepper, StepperBuilder>.HtmlAttributes(IDictionary<string, object>)WidgetBuilderBase<Stepper, StepperBuilder>.ScriptAttributes(object, bool)WidgetBuilderBase<Stepper, StepperBuilder>.ScriptAttributes(IDictionary<string, object>, bool)WidgetBuilderBase<Stepper, StepperBuilder>.Render()WidgetBuilderBase<Stepper, StepperBuilder>.ToHtmlString()WidgetBuilderBase<Stepper, StepperBuilder>.WriteTo(TextWriter, HtmlEncoder)WidgetBuilderBase<Stepper, StepperBuilder>.ToClientTemplate()WidgetBuilderBase<Stepper, StepperBuilder>.AsModule(bool)WidgetBuilderBase<Stepper, StepperBuilder>.ComponentWidgetBuilderBase<Stepper, StepperBuilder>.ContainerHelperResult.WriteTo(TextWriter, HtmlEncoder)HelperResult.WriteActionobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes a new instance of the StepperBuilder class.

C#
public StepperBuilder(Stepper component)
Parameters:componentStepper

Methods

Configures the client-side events.

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

The client events action.

Returns:

StepperBuilder

Returns the current StepperBuilder instance.

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 for Indicator

Returns:

StepperBuilder

Returns the current StepperBuilder instance.

Example:
C#
@(Html.Kendo().Stepper()
.Name("stepper")
.Label(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 for Label

Returns:

StepperBuilder

Returns the current StepperBuilder instance.

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 the previous step.

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

The value for Linear

Returns:

StepperBuilder

Returns the current StepperBuilder instance.

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 for Orientation

Returns:

StepperBuilder

Returns the current StepperBuilder instance.

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()
Returns:

StepperBuilder

Returns the current StepperBuilder instance.

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 for SelectOnFocus

Returns:

StepperBuilder

Returns the current StepperBuilder instance.

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 StepperStepFactory for the steps setting.

Returns:

StepperBuilder

Returns the current instance of StepperBuilder .