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

Provides a fluent interface for configuring Wizard step properties and content.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

T

Syntax:

C#
public class WizardStepBuilderGeneric<T> where T : class

Inheritance: objectWizardStepBuilderGeneric<T>

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

C#
public WizardStepBuilderGeneric(WizardStepGeneric<T> settings, ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator generator)
Parameters:settingsWizardStepGeneric<T>viewContextViewContextinitializerIJavaScriptInitializergeneratorIUrlGenerator

Methods

Allows configuration of the buttons to be rendered on each step. If the array contains strings, those values will be taken as Buttons names. If the array contains objects, those will be used when initializing the actual Button instances on each step.

C#
public WizardStepBuilderGeneric<T> Buttons(Action<WizardStepButtonFactory> configurator)
Parameters:configuratorAction<WizardStepButtonFactory>

The action that configures the buttons.

Returns:

WizardStepBuilderGeneric<T>

Example:
C#
@(Html.Kendo().Wizard()
.Name("wizard")
.Steps(steps =&gt;
{
steps.Add().Title("Welcome")
.Buttons(b =&gt;
{
b.Next();
});
})
)

Specifies a custom class that will be set on the step container element.

C#
public WizardStepBuilderGeneric<T> ClassName(string value)
Parameters:valuestring

The value that configures the customclass.

Returns:

WizardStepBuilderGeneric<T>

Example:
C#
@(Html.Kendo().Wizard()
.Name("wizard")
.Steps(steps =&gt;
{
steps.Add().ClassName("myClassName");
})
)

Sets the HTML content which the item should display.

C#
public WizardStepBuilderGeneric<T> Content(Func<object, object> value)
Parameters:valueFunc<object, object>

The content wrapped in a regular HTML tag or text tag (Razor syntax).

Returns:

WizardStepBuilderGeneric<T>

Example:
C#
@(Html.Kendo().Wizard()
.Name("wizard")
.Steps(steps =&gt; steps
.Add()
.Content(
@&lt;text&gt;
Some text
&lt;strong&gt; First Item Content&lt;/strong&gt;
&lt;/text&gt;
);
)
)

Specifies the HTML string content to be rendered in the step.

C#
public WizardStepBuilderGeneric<T> Content(string value)
Parameters:valuestring

The value for Content

Returns:

WizardStepBuilderGeneric<T>

Returns the current WizardStepBuilderGeneric<T> instance.

Example:
C#
@(Html.Kendo().Wizard()
.Name("wizard")
.Steps(steps =&gt;
{
steps.Add().Title("Welcome").Content("Some Content");
})
)

Specifies the id of a DOM element, which content to be used as a content of the current step.

C#
public WizardStepBuilderGeneric<T> ContentId(string value)
Parameters:valuestring

The value that configures the contentid.

Returns:

WizardStepBuilderGeneric<T>

Example:
C#
@(Html.Kendo().Wizard()
.Name("wizard")
.Steps(steps =&gt;
{
steps.Add().ContentId("content");
})
)

Specifies an endpoint which the step content should be loaded from.

C#
public WizardStepBuilderGeneric<T> ContentUrl(string value)
Parameters:valuestring

The value that configures the contenturl.

Returns:

WizardStepBuilderGeneric<T>

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

Specifies whether the step is enabled or not.

C#
public WizardStepBuilderGeneric<T> Enabled(bool value)
Parameters:valuebool

The value that configures the enabled.

Returns:

WizardStepBuilderGeneric<T>

Example:
C#
@(Html.Kendo().Wizard()
.Name("wizard")
.Steps(steps =&gt;
{
steps.Add().Enabled(true);
})
)

Specifies the Form that will be rendered as part of the Step's content

C#
public WizardStepBuilderGeneric<T> Form(Action<FormBuilder<T>> configurator)
Parameters:configuratorAction<FormBuilder<T>>Returns:

WizardStepBuilderGeneric<T>

Example:
C#
@(Html.Kendo().Wizard()
.Name("wizard")
.Steps(steps =&gt;
{
steps.Add().Title("My Title")
.Form(f =&gt; f
.Validatable(v =&gt;
{
v.ValidateOnBlur(true);
v.ValidationSummary(vs =&gt; vs.Enable(false));
})
.FormData(Model)
.Items(items =&gt;
{
items.Add().Field(p =&gt; p.AccountDetails.Username).Label(l =&gt; l.Text("Username:"));
items.Add().Field(p =&gt; p.AccountDetails.Email).Label(l =&gt; l.Text("Email:"));
items.Add().Field(p =&gt; p.AccountDetails.Password).Label(l =&gt; l.Text("Password:"));
})
);
})
)

Specifies the Stepper's step icon.

C#
public WizardStepBuilderGeneric<T> Icon(string value)
Parameters:valuestring

The value that configures the icon.

Returns:

WizardStepBuilderGeneric<T>

Example:
C#
@(Html.Kendo().Wizard()
.Name("wizard")
.Steps(steps =&gt;
{
steps.Add().Icon("k-i-home");
})
)

Specifies the Stepper's step iconTemplate.

C#
public WizardStepBuilderGeneric<T> IconTemplate(MvcHtmlString value)
Parameters:valueMvcHtmlString

The value that configures the iconTemplate.

Returns:

WizardStepBuilderGeneric<T>

Example:
C#
@(Html.Kendo().Wizard()
.Name("wizard")
.Steps(steps =&gt;
{
steps.Add().IconTemplate(Html.Partial("_IconTemplatePartial"));
})
)
C#
public WizardStepBuilderGeneric<T> IconTemplate(string value)
Parameters:valuestringReturns:

WizardStepBuilderGeneric<T>

Specifies the Stepper's step iconTemplateId.

C#
public WizardStepBuilderGeneric<T> IconTemplateId(string value)
Parameters:valuestring

The value that configures the iconTemplateId.

Returns:

WizardStepBuilderGeneric<T>

Example:
C#
@(Html.Kendo().Wizard()
.Name("wizard")
.Steps(steps =&gt;
{
steps.Add().IconTemplateId("homeIcon");
})
)

Specifies whether the pager will be rendered on the current step or not.

C#
public WizardStepBuilderGeneric<T> Pager(bool value)
Parameters:valuebool

The value that configures the pager.

Returns:

WizardStepBuilderGeneric<T>

Example:
C#
@(Html.Kendo().Wizard()
.Name("wizard")
.Steps(steps =&gt;
{
steps.Add().Pager(true);
})
)

Specifies a title of the current step.

C#
public virtual WizardStepBuilderGeneric<T> Title(string value)
Parameters:valuestring

The value that configures the title.

Returns:

WizardStepBuilderGeneric<T>

Example:
C#
@(Html.Kendo().Wizard()
.Name("wizard")
.Steps(steps =&gt;
{
steps.Add().Title("My Title");
})
)