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

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

Definition

Constructors

Initializes a new instance of the Wizard class.

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

The client events.

Methods

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

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

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

Returns:

WizardEventBuilder

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

Defines the handler of the ContentLoad client-side event. Triggered when content is fetched from an AJAX request and has been loaded.

C#
public WizardEventBuilder ContentLoad(string handler)
Parameters:handlerstring

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

Returns:

WizardEventBuilder

Example:
C#
@(Html.Kendo().Wizard()
.Name("wizard")
.Events(events =&gt; events.ContentLoad("onContentLoad"))
)

Defines the handler of the Done client-side event. Triggered when the "Done" action Button has been clicked

C#
public WizardEventBuilder Done(string handler)
Parameters:handlerstring

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

Returns:

WizardEventBuilder

Example:
C#
@(Html.Kendo().Wizard()
.Name("wizard")
.Events(events =&gt; events.Done("onDone"))
)

Defines the handler of the Error client-side event. Triggered when an attempt to fetch step content with an AJAX request fails. The event will be fired only when the user clicks on the Previous or Next button, or navigates to another step using the Stepper. It will not be fired if the remote request is raised as a result of a Step.load() method call.

C#
public WizardEventBuilder Error(string handler)
Parameters:handlerstring

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

Returns:

WizardEventBuilder

Example:
C#
@(Html.Kendo().Wizard()
.Name("wizard")
.Events(events =&gt; events.Error("onError"))
)

Defines the handler of the FormValidateFailed client-side event. Fired when the validateForms configuration option is set to true (default), and the validation of the Kendo UI Form on the current Wizard step fails when the user tries to navigate to another step.

C#
public WizardEventBuilder FormValidateFailed(string handler)
Parameters:handlerstring

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

Returns:

WizardEventBuilder

Example:
C#
@(Html.Kendo().Wizard()
.Name("wizard")
.Events(events =&gt; events.FormValidateFailed("onFormValidateFailed"))
)

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

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

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

Returns:

WizardEventBuilder

Defines the handler of the Reset client-side event. Triggered when the "Reset" action Button has been clicked

C#
public WizardEventBuilder Reset(string handler)
Parameters:handlerstring

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

Returns:

WizardEventBuilder

Example:
C#
@(Html.Kendo().Wizard()
.Name("wizard")
.Events(events =&gt; events.Reset("onReset"))
)

Defines the handler of the Select client-side event. Fires when the user clicks on the Stepper or clicks on "Previous"/"Next" action Buttons to select another step.

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

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

Returns:

WizardEventBuilder

Example:
C#
@(Html.Kendo().Wizard()
.Name("wizard")
.Events(events =&gt; events.Select("onSelect"))
)