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

Defines the fluent API for configuring the WizardStepButton settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class WizardStepButtonBuilder

Inheritance: objectWizardStepButtonBuilder

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

Constructors

C#
public WizardStepButtonBuilder(WizardStepButton settings)
Parameters:settingsWizardStepButton

The WizardStepButton

Methods

A click handler that defines the logic to be executed upon button click.

C#
public WizardStepButtonBuilder Click(string handler)
Parameters:handlerstring

The name of the JavaScript function that will be evaluated.

Returns:

WizardStepButtonBuilder

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

Specifies whether the Button in question is enabled or not.

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

The value that configures the enabled.

Returns:

WizardStepButtonBuilder

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

Specifies the name of the Button. The default buttons have "reserved" names. That would allow additional customization of that Buttons' text and behavior.

C#
public WizardStepButtonBuilder Name(string value)
Parameters:valuestring

The value that configures the name.

Returns:

WizardStepButtonBuilder

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

Specifies whether the Button will have the "k-primary" class assigned or not.

C#
public WizardStepButtonBuilder Primary(bool value)
Parameters:valuebool

The value that configures the primary status.

Returns:

WizardStepButtonBuilder

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

Specifies the text to be displayed in the Button.

C#
public WizardStepButtonBuilder Text(string value)
Parameters:valuestring

The value that configures the text.

Returns:

WizardStepButtonBuilder

Example:
C#
@(Html.Kendo().Wizard()
.Name("wizard")
.Steps(steps =>
{
steps.Add().Title("Welcome")
.Buttons(b =>
{
b.Next().Text("Proceed to Next Step");
});
})
)