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

WizardStepBuilderGeneric class.

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

WizardStepBuilderGeneric method.

C#
public WizardStepBuilderGeneric(WizardStepGeneric<T> container, ViewContext viewContext)
Parameters:containerWizardStepGeneric<T>viewContextViewContext

Properties

Gets or sets the container.

C#
public WizardStepGeneric<T> Container { get; }

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 configurator for the buttons setting.

Returns:

WizardStepBuilderGeneric<T>

Returns the current WizardStepBuilderGeneric<T> instance.

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 for CustomClass

Returns:

WizardStepBuilderGeneric<T>

Returns the current WizardStepBuilderGeneric<T> instance.

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

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 for ContentId

Returns:

WizardStepBuilderGeneric<T>

Returns the current WizardStepBuilderGeneric<T> instance.

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

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

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

The value for ContentUrl

Returns:

WizardStepBuilderGeneric<T>

Returns the current WizardStepBuilderGeneric<T> instance.

Example:
C#
@(Html.Kendo().Wizard()
.Name("wizard")
.Steps(steps =&gt;
{
steps.Add().Title("Welcome").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 for Enabled

Returns:

WizardStepBuilderGeneric<T>

Returns the current WizardStepBuilderGeneric<T> instance.

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

Configures the built-in form to be rendered in the step.

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

The configurator for the Form

Returns:

WizardStepBuilderGeneric<T>

Returns the current WizardStepBuilderGeneric<T> instance.

Specifies the Stepper's step icon.

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

The value that configures the icon.

Returns:

WizardStepBuilderGeneric<T>

Returns the current WizardStepBuilderGeneric<T> instance.

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

Specifies the Stepper's step iconTemplate.

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

The value that configures the iconTemplate.

Returns:

WizardStepBuilderGeneric<T>

Returns the current WizardStepBuilderGeneric<T> instance.

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

Specifies the Stepper's step iconTemplateId.

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

The value that configures the iconTemplateId.

Returns:

WizardStepBuilderGeneric<T>

Returns the current WizardStepBuilderGeneric<T> instance.

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

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

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

The value for Pager

Returns:

WizardStepBuilderGeneric<T>

Returns the current WizardStepBuilderGeneric<T> instance.

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

Specifies a title of the current step.

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

The value for Title

Returns:

WizardStepBuilderGeneric<T>

Returns the current WizardStepBuilderGeneric<T> instance.

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