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

Stepper

Class

Kendo UI Stepper component

Definition

Constructors

Initializes a new instance of the Stepper class.

C#
public Stepper(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
Parameters:viewContextViewContext

The view context

initializerIJavaScriptInitializer

The JavaScriptInitializer

urlGeneratorIUrlGenerator

The URL generator.

Properties

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 bool? Indicator { get; set; }

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

C#
public bool? Label { get; set; }

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 bool? Linear { get; set; }

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

C#
public StepperOrientationType? Orientation { get; set; }

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 bool? SelectOnFocus { get; set; }

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 List<StepperStep> Steps { get; set; }

Methods

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

Overrides: WidgetBase.Serialize()

Writes the HTML.

C#
protected override void WriteHtml(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

The HtmlTextWriter.

Overrides: WidgetBase.WriteHtml(HtmlTextWriter)

Writes the initialization script.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

The TextWriter.

Overrides: WidgetBase.WriteInitializationScript(TextWriter)