Kendo.Mvc.UI.Fluent.FormBuilder
Defines the fluent API for configuring the Kendo UI Form
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<Kendo.Mvc.UI.Form.Fluent.FormValidatableSettingsBuilder<T>>)
Configures the built-in Validator options.
Parameters
configurator System.Action<Kendo.Mvc.UI.Form.Fluent.FormValidatableSettingsBuilder>
The action that configures the validatable.
Items(System.Action<Kendo.Mvc.UI.Form.Fluent.FormItemFactory<T>>)
A JavaScript array that contains the Form's items configuration.
Parameters
configurator System.Action<Kendo.Mvc.UI.Form.Fluent.FormItemFactory>
The action that configures the items.
FormData(System.Object)
Events(System.Action<Kendo.Mvc.UI.Fluent.FormEventBuilder>)
Configures the client-side events.
Parameters
configurator System.Action<Kendo.Mvc.UI.Fluent.FormEventBuilder>
The client events action.
Example (ASPX)
<%= 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<Kendo.Mvc.UI.Form.Fluent.FormGridSettingsBuilder<T>>)
Grid layout settings.
Parameters
configurator System.Action<Kendo.Mvc.UI.Form.Fluent.FormGridSettingsBuilder>
The action that configures the grid.
FormatLabel(System.Func<System.Object,System.Object>)
Callback function that could be used to change the default format of the automatically generated labels.
Parameters
handler System.Func<System.Object,System.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<Kendo.Mvc.UI.Form.Fluent.FormMessagesSettingsBuilder<T>>)
Configures text messages displayed in the Form. Use it to customize or localize the Form messages..
Parameters
configurator System.Action<Kendo.Mvc.UI.Form.Fluent.FormMessagesSettingsBuilder>
The action that configures the messages.