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

Defines the fluent API for configuring the Kendo UI Wizard

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class WizardBuilder : WidgetBuilderBase<Wizard, WizardBuilder>, IHtmlContent

Inheritance: objectHelperResultWidgetBuilderBase<Wizard, WizardBuilder>WizardBuilder

Implements: IHtmlContent

Inherited Members WidgetBuilderBase<Wizard, WizardBuilder>.ToComponent()WidgetBuilderBase<Wizard, WizardBuilder>.Expression(string)WidgetBuilderBase<Wizard, WizardBuilder>.Explorer(ModelExplorer)WidgetBuilderBase<Wizard, WizardBuilder>.Name(string)WidgetBuilderBase<Wizard, WizardBuilder>.Deferred(bool)WidgetBuilderBase<Wizard, WizardBuilder>.HtmlAttributes(object)WidgetBuilderBase<Wizard, WizardBuilder>.HtmlAttributes(IDictionary<string, object>)WidgetBuilderBase<Wizard, WizardBuilder>.ScriptAttributes(object, bool)WidgetBuilderBase<Wizard, WizardBuilder>.ScriptAttributes(IDictionary<string, object>, bool)WidgetBuilderBase<Wizard, WizardBuilder>.Render()WidgetBuilderBase<Wizard, WizardBuilder>.ToHtmlString()WidgetBuilderBase<Wizard, WizardBuilder>.WriteTo(TextWriter, HtmlEncoder)WidgetBuilderBase<Wizard, WizardBuilder>.ToClientTemplate()WidgetBuilderBase<Wizard, WizardBuilder>.AsModule(bool)WidgetBuilderBase<Wizard, WizardBuilder>.ComponentWidgetBuilderBase<Wizard, WizardBuilder>.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 WizardBuilder class.

C#
public WizardBuilder(Wizard component)
Parameters:componentWizard

Methods

Indicates whether the Steps in the Wizard will render their Buttons and Pager element.

C#
public WizardBuilder ActionBar(bool value)
Parameters:valuebool

The value for ActionBar

Returns:

WizardBuilder

Returns the current WizardBuilder instance.

Example:
C#
@(Html.Kendo().Wizard()
.Name("wizard")
.ActionBar(true)
)

The position of the Wizard step content according to the embedded Stepper widget.

C#
public WizardBuilder ContentPosition(WizardContentPosition value)
Parameters:valueWizardContentPosition

The value for ContentPosition

Returns:

WizardBuilder

Returns the current WizardBuilder instance.

Example:
C#
@(Html.Kendo().Wizard()
.Name("wizard")
.ContentPosition(WizardContentPosition.Right)
)

Configures the client-side events.

C#
public WizardBuilder Events(Action<WizardEventBuilder> configurator)
Parameters:configuratorAction<WizardEventBuilder>

The client events action.

Returns:

WizardBuilder

Returns the current WizardBuilder instance.

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

Indicates whether the step content will be loaded on demand when a given step is selected. Applicable when the step configuration has "contentUrl" set.

C#
public WizardBuilder LoadOnDemand()
Returns:

WizardBuilder

Returns the current WizardBuilder instance.

Indicates whether the step content will be loaded on demand when a given step is selected. Applicable when the step configuration has "contentUrl" set.

C#
public WizardBuilder LoadOnDemand(bool value)
Parameters:valuebool

The value for LoadOnDemand

Returns:

WizardBuilder

Returns the current WizardBuilder instance.

Example:
C#
@(Html.Kendo().Wizard()
.Name("wizard")
.LoadOnDemand(true)
)

Provides configuration options for the messages present in the Wizard widget.

C#
public WizardBuilder Messages(Action<WizardMessagesSettingsBuilder> configurator)
Parameters:configuratorAction<WizardMessagesSettingsBuilder>

The WizardMessagesSettingsBuilder for the messages setting.

Returns:

WizardBuilder

Returns the current instance of WizardBuilder .

Indicates whether the Steps in the Wizard will render their Pager element.

C#
public WizardBuilder Pager(bool value)
Parameters:valuebool

The value for Pager

Returns:

WizardBuilder

Returns the current WizardBuilder instance.

Example:
C#
@(Html.Kendo().Wizard()
.Name("wizard")
.Pager(true)
)

Indicates whether the step content will be reloaded on each navigation to given step. Applicable when the step configuration has "contentUrl" set.

C#
public WizardBuilder ReloadOnSelect(bool value)
Parameters:valuebool

The value for ReloadOnSelect

Returns:

WizardBuilder

Returns the current WizardBuilder instance.

Example:
C#
@(Html.Kendo().Wizard()
.Name("wizard")
.ReloadOnSelect(true)
)

Provides configuration options for the Stepper instance of the Wizard widget.

C#
public WizardBuilder Stepper(Action<WizardStepperSettingsBuilder> configurator)
Parameters:configuratorAction<WizardStepperSettingsBuilder>

The WizardStepperSettingsBuilder for the stepper setting.

Returns:

WizardBuilder

Returns the current instance of WizardBuilder .

Array of steps to be rendered in the Wizard.

C#
public WizardBuilder Steps(Action<WizardStepFactory> configurator)
Parameters:configuratorAction<WizardStepFactory>

The configurator for the steps setting.

Returns:

WizardBuilder

Returns the current WizardBuilder instance.

Example:
C#
@(Html.Kendo().Wizard()
.Name("wizard")
.Steps(steps =&gt;
{
steps.Add().ContentUrl(Url.Content("~/shared/web/wizard/ajax/ajaxContent1.html")).Title("Welcome")
.Buttons(b =&gt;
{
b.Next();
});
})
)

The tag that will be rendered. Defaults to "div". Could be test to "form" to act as a form element.

C#
public WizardBuilder Tag(string value)
Parameters:valuestring

The value for Tag

Returns:

WizardBuilder

Returns the current WizardBuilder instance.

Example:
C#
@(Html.Kendo().Wizard()
.Name("wizard")
.Tag("div")
)

Indicates whether the Wizard will automatically validate any Kendo Form configured for a Step. Validation will be executed upon Step navigation.

C#
public WizardBuilder ValidateForms(Action<WizardValidateFormsSettingsBuilder> configurator)
Parameters:configuratorAction<WizardValidateFormsSettingsBuilder>

The WizardValidateFormsSettingsBuilder for the validateforms setting.

Returns:

WizardBuilder

Returns the current instance of WizardBuilder .

Indicates whether the Wizard will automatically validate any Kendo Form configured for a Step. Validation will be executed upon Step navigation.

C#
public WizardBuilder ValidateForms(bool enabled)
Parameters:enabledbool

Enables or disables the validateforms option.

Returns:

WizardBuilder

Returns the current instance of WizardValidateFormsSettingsBuilder .