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

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

Definition

Constructors

Initializes a new instance of the StepperEventBuilder class.

C#
public StepperEventBuilder(IDictionary<string, object> events)
Parameters:eventsIDictionary<string, object>

The Stepper event handlers.

Example:
C#
@(Html.Kendo().Stepper()
.Name("stepper")
.Events(events =&gt; events.Select("handler"))
)

Methods

Defines the handler of the Activate client-side event. Fires when a new Step has been selected upon user interaction.

C#
public StepperEventBuilder Activate(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

StepperEventBuilder

Returns the current instance of StepperEventBuilder .

Example:
C#
@( Html.Kendo().Stepper()
.Name("stepper")
.Events(events =&gt; events.Activate(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the Activate client-side event. Fires when a new Step has been selected upon user interaction.

C#
public StepperEventBuilder Activate(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the Activate event.

Returns:

StepperEventBuilder

Returns the current instance of StepperEventBuilder .

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

Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the Stepper is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public StepperEventBuilder KendoKeydown(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

StepperEventBuilder

Returns the current instance of StepperEventBuilder .

Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the Stepper is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public StepperEventBuilder KendoKeydown(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the KendoKeydown event.

Returns:

StepperEventBuilder

Returns the current instance of StepperEventBuilder .

Defines the handler of the Select client-side event. Fires when the user clicks on a Step to select it.

C#
public StepperEventBuilder Select(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

StepperEventBuilder

Returns the current instance of StepperEventBuilder .

Example:
C#
@( Html.Kendo().Stepper()
.Name("stepper")
.Events(events =&gt; events.Select(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the Select client-side event. Fires when the user clicks on a Step to select it.

C#
public StepperEventBuilder Select(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the Select event.

Returns:

StepperEventBuilder

Returns the current instance of StepperEventBuilder .

Example:
C#
@(Html.Kendo().Stepper()
.Name("stepper")
.Events(events =&gt; events.Select("handler"))
)