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

FormBuilder

Defines the fluent API for configuring the Kendo UI Form

Properties

WriteAction - Func

Methods

ButtonsTemplate(System.String)

Specifies the template which is used for rendering the From buttons.

Parameters

value - System.String

The value that configures the buttonstemplate.

ButtonsTemplateId(System.String)

Specifies the template which is used for rendering the From buttons.

Parameters

value - System.String

The value that configures the buttonstemplate.

FocusFirst(System.Boolean)

Specifies if the first editor of the form will be focused on initialization.

Parameters

value - System.Boolean

The value that configures the focusfirst.

Orientation(System.String)

Configures the Form orientation. Available options are "horizontal" and "vertical".By default, the Form is rendered with vertical orientation.

Parameters

value - System.String

The value that configures the orientation.

Validatable(System.Action)

Configures the built-in Validator options.

Parameters

configurator - System.Action<FormValidatableSettingsBuilder>

The action that configures the validatable.

Items(System.Action)

A JavaScript array that contains the Form's items configuration.

Parameters

configurator - System.Action<FormItemFactory>

The action that configures the items.

FormData(System.Object)

Parameters

value - System.Object

Events(System.Action)

Configures the client-side events.

Parameters

configurator - System.Action<FormEventBuilder>

The client events action.

Example


             <%= Html.Kendo().Form()
                        .Name("Form")
                        .Events(events => events
                            .Validate("onValidate")
                        )
            %>

Layout(System.String)

Specify the layout of Form content. Valid options are: grid: This is equivalent to display: grid. It defines the form element as a grid container and establishes a new grid formatting context for its contents..

Parameters

value - System.String

The value that configures the layout.

Grid(System.Action)

Grid layout settings.

Parameters

configurator - System.Action<FormGridSettingsBuilder>

The action that configures the grid.

FormatLabel(System.Func)

Callback function that could be used to change the default format of the automatically generated labels.

Parameters

handler - System.Func<Object,Object>

The value that configures the formatlabel action.

FormatLabel(System.String)

Callback function that could be used to change the default format of the automatically generated labels.

Parameters

handler - System.String

The value that configures the formatlabel action.

Messages(System.Action)

Configures text messages displayed in the Form. Use it to customize or localize the Form messages..

Parameters

configurator - System.Action<FormMessagesSettingsBuilder>

The action that configures the messages.

ToComponent()

Returns the internal view component.

Expression(System.String)

Sets the name of the component.

Parameters

modelExpression - System.String

Explorer(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer)

Sets the name of the component.

Parameters

modelExplorer - Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer

Name(System.String)

Sets the name of the component.

Parameters

componentName - System.String

The name.

Deferred(System.Boolean)

Suppress initialization script rendering. Note that this options should be used in conjunction with

Parameters

deferred - System.Boolean

HtmlAttributes(System.Object)

Sets the HTML attributes.

Parameters

attributes - System.Object

The HTML attributes.

HtmlAttributes(System.Collections.Generic.IDictionary)

Sets the HTML attributes.

Parameters

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

The HTML attributes.

Render()

Renders the component in place.

ToHtmlString()

WriteTo(System.IO.TextWriter,System.Text.Encodings.Web.HtmlEncoder)

Parameters

writer - System.IO.TextWriter
encoder - System.Text.Encodings.Web.HtmlEncoder

ToClientTemplate()

In this article
Not finding the help you need?