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

WizardBuilder

Methods

ActionBar(System.Boolean)

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

Parameters

value - System.Boolean

The value that configures the actionbar.

Example


            @(Html.Kendo().Wizard()
               .Name("wizard")
               .ActionBar(true)
             )

LoadOnDemand(System.Boolean)

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

Parameters

value - System.Boolean

The value that configures the loadondemand.

Example


            @(Html.Kendo().Wizard()
               .Name("wizard")
               .LoadOnDemand(true)
             )

Messages(System.Action)

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

Parameters

configurator - System.Action<WizardMessagesSettingsBuilder>

The action that configures the messages.

Example


            @(Html.Kendo().Wizard()
               .Name("wizard")
               .Messages(messages => messages.Done("Completed"))
             )

Pager(System.Boolean)

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

Parameters

value - System.Boolean

The value that configures the pager.

Example


            @(Html.Kendo().Wizard()
               .Name("wizard")
               .Pager(true)
             )

ReloadOnSelect(System.Boolean)

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

Parameters

value - System.Boolean

The value that configures the reloadonselect.

Example


            @(Html.Kendo().Wizard()
               .Name("wizard")
               .ReloadOnSelect(true)
             )

Stepper(System.Action)

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

Parameters

configurator - System.Action<WizardStepperSettingsBuilder>

The action that configures the stepper.

Example


            @(Html.Kendo().Wizard()
               .Name("wizard")
               .Stepper(stepper => stepper.Label(true))
             )

ValidateForms(System.Boolean)

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

Parameters

enabled - System.Boolean

Enables or disables the validateforms option.

Example


            @(Html.Kendo().Wizard()
               .Name("wizard")
               .ValidateForms(true)
             )

ValidateForms(System.Action)

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

Parameters

configurator - System.Action<WizardValidateFormsSettingsBuilder>

The action that configures the validateforms.

Example


            @(Html.Kendo().Wizard()
               .Name("wizard")
               .ValidateForms(forms => forms.ValidateOnPrevious(true))
             )

ContentPosition(Kendo.Mvc.UI.WizardContentPosition)

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

Parameters

value - WizardContentPosition

The value that configures the contentposition.

Example


            @(Html.Kendo().Wizard()
               .Name("wizard")
               .ContentPosition(WizardContentPosition.Right)
             )

Tag(System.String)

Allow rendering of form element instead of the default div.

Parameters

tagName - System.String

The tag that will be rendered as for the Wizard widget

Example


             @(Html.Kendo().Wizard()
                 .Name("wizard")
                 .Tag("form")
             )

Events(System.Action)

Configures the client-side events.

Parameters

configurator - System.Action<WizardEventBuilder>

The client events action.

Example


             @(Html.Kendo().Wizard()
                  .Name("Wizard")
                  .Events(events => events
                      .Activate("onActivate")
                  )
            )

Steps(System.Action)

Array of steps to be rendered in the Wizard.

Parameters

configurator - System.Action<WizardStepFactory>

The action that configures the steps.

ToComponent()

Returns the internal view component.

Name(System.String)

Sets the name of the component.

Parameters

componentName - System.String

The name of the component.

Example


            @(Html.Kendo().Grid<OrderViewModel>()
               .Name("grid")
               .Columns(columns =>
               {
                   columns.Bound(p => p.OrderID).Filterable(false);
                   columns.Bound(p => p.Freight);  
               })
               .DataSource(dataSource => dataSource
                   .Ajax()
                   .PageSize(20)
                   .Read(read => read.Action("Orders_Read", "Grid"))
               )
            )

Deferred(System.Boolean)

Suppress initialization script rendering. Note that this options should be used in conjunction with Kendo.Mvc.UI.Fluent.WidgetFactory.DeferredScripts(System.Boolean)

Parameters

deferred - System.Boolean

ModelMetadata(System.Web.Mvc.ModelMetadata)

Uses the Metadata of the Model.

Parameters

modelMetadata - System.Web.Mvc.ModelMetadata

The metadata set for the Model

HtmlAttributes(System.Object)

Sets the HTML attributes.

Parameters

attributes - System.Object

The HTML attributes.

HtmlAttributes(System.Collections.Generic.IDictionary)

Parameters

attributes - System.Collections.Generic.IDictionary<String,Object>

AsChildComponent()

Render()

Renders the component.

Example


            @(@Page Inherits="System.Web.Mvc.ViewPage<IEnumerable<Product>>" )
            @( Html.Kendo().Grid(Model)
                .Name("grid")
                .DetailTemplate(product => {
                    )
                       Product Details:
                       <div>Product Name: @( product.ProductName )</div>
                       <div>Units In Stock: @( product.UnitsInStock )</div>
                    @(
                })
                .Render();
            )

ToHtmlString()

ToClientTemplate()

In this article
Not finding the help you need?