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

Defines the fluent API for configuring WizardStep

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class WizardStepBuilder

Inheritance: objectWizardStepBuilder

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

Constructors

WizardStepBuilder method.

C#
public WizardStepBuilder(WizardStep container, ViewContext viewContext)
Parameters:containerWizardStepviewContextViewContext

Properties

Gets the settings being configured.

C#
protected WizardStep 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 WizardStepBuilder Buttons(Action<WizardStepButtonFactory> configurator)
Parameters:configuratorAction<WizardStepButtonFactory>

The configurator for the buttons setting.

Returns:

WizardStepBuilder

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

C#
public WizardStepBuilder ClassName(string value)
Parameters:valuestring

The value for ClassName

Returns:

WizardStepBuilder

Sets the HTML content which the item should display.

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

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

Returns:

WizardStepBuilder

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 WizardStepBuilder Content(string value)
Parameters:valuestring

The value for Content

Returns:

WizardStepBuilder

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

C#
public WizardStepBuilder ContentId(string value)
Parameters:valuestring

The value for ContentId

Returns:

WizardStepBuilder

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

C#
public WizardStepBuilder ContentUrl(string value)
Parameters:valuestring

The value for ContentUrl

Returns:

WizardStepBuilder

Specifies whether the step is enabled or not.

C#
public WizardStepBuilder Enabled(bool value)
Parameters:valuebool

The value for Enabled

Returns:

WizardStepBuilder

Configures the Wizard Step's built-in Form

C#
public WizardStepBuilder Form(Action<FormBuilder<object>> configurator)
Parameters:configuratorAction<FormBuilder<object>>

The configurator for the Form

Returns:

WizardStepBuilder

Returns the current WizardStepBuilder instance.

Specifies the Stepper's step icon.

C#
public WizardStepBuilder Icon(string value)
Parameters:valuestring

The value that configures the icon.

Returns:

WizardStepBuilder

Returns the current WizardStepBuilder 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 WizardStepBuilder IconTemplate(string value)
Parameters:valuestring

The value that configures the iconTemplate.

Returns:

WizardStepBuilder

Returns the current WizardStepBuilder 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 WizardStepBuilder IconTemplateId(string value)
Parameters:valuestring

The value that configures the iconTemplateId.

Returns:

WizardStepBuilder

Returns the current WizardStepBuilder 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 WizardStepBuilder Pager(bool value)
Parameters:valuebool

The value for Pager

Returns:

WizardStepBuilder

Specifies a title of the current step.

C#
public WizardStepBuilder Title(string value)
Parameters:valuestring

The value for Title

Returns:

WizardStepBuilder