FormBuilder<T>
Defines the fluent API for configuring the Kendo Form for ASP.NET MVC.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class FormBuilder<T> : WidgetBuilderBase<Form<T>, FormBuilder<T>>, IHtmlString where T : class
Inheritance: objectWidgetBuilderBase<Form<T>, FormBuilder<T>>FormBuilder<T>
Implements:
Inherited Members
Constructors
Initializes a new instance of the Form class.
Methods
Specifies the template which is used for rendering the Form buttons.
public FormBuilder<T> ButtonsTemplate(string value)
The value that configures the buttonstemplate.
Returns:FormBuilder<T>
Specifies the template which is used for rendering the Form buttons.
public FormBuilder<T> ButtonsTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the buttonstemplate.
Returns:FormBuilder<T>
Specifies the template which is used for rendering the Form buttons.
public FormBuilder<T> ButtonsTemplateHandler(string value)
The value that configures the buttonstemplate.
Returns:FormBuilder<T>
Specifies the template which is used for rendering the Form buttons.
public FormBuilder<T> ButtonsTemplateId(string value)
The value that configures the buttonstemplate.
Returns:FormBuilder<T>
Specifies the template which is used for rendering the Form buttons.
public FormBuilder<T> ButtonsTemplateView(MvcHtmlString value)
The value that configures the buttonstemplate.
Returns:FormBuilder<T>
Specifies if the clearButton should be rendered on initialization.
public FormBuilder<T> ClearButton(bool value)
The value that configures the clearbutton.
Returns:FormBuilder<T>
Configures the client-side events.
public FormBuilder<T> Events(Action<FormEventBuilder> configurator)
The client events action.
Returns:FormBuilder<T>
Specifies if the first editor of the form will be focused on initialization.
public FormBuilder<T> FocusFirst(bool value)
The value that configures the focusfirst.
Returns:FormBuilder<T>
Callback function that could be used to change the default format of the automatically generated labels.
public FormBuilder<T> FormatLabel(Func<object, object> handler)
The value that configures the formatlabel action.
Returns:FormBuilder<T>
Callback function that could be used to change the default format of the automatically generated labels.
public FormBuilder<T> FormatLabel(string handler)
The value that configures the formatlabel action.
Returns:FormBuilder<T>
Grid layout settings.
public FormBuilder<T> Grid(Action<FormGridSettingsBuilder<T>> configurator)
The action that configures the grid.
Returns:FormBuilder<T>
public FormBuilder<T> Items(Action<FormItemFactory<T>> configurator)
FormBuilder<T>
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..
public FormBuilder<T> Layout(string value)
The value that configures the layout.
Returns:FormBuilder<T>
Configures text messages displayed in the Form. Use it to customize or localize the Form messages.
public FormBuilder<T> Messages(Action<FormMessagesSettingsBuilder<T>> configurator)
The action that configures the messages.
Returns:FormBuilder<T>
Configures the Form orientation. Available options are "horizontal" and "vertical".By default, the Form is rendered with vertical orientation.
public FormBuilder<T> Orientation(string value)
The value that configures the orientation.
Returns:FormBuilder<T>
Sets a value controlling the size of the input.
public FormBuilder<T> Size(ComponentSize value)
The value that configures the size.
Returns:FormBuilder<T>
public FormBuilder<T> SmartPaste(Action<SmartPasteButtonBuilder> configurator)
FormBuilder<T>
Configures the built-in Validator options.
public FormBuilder<T> Validatable(Action<FormValidatableSettingsBuilder<T>> configurator)
The action that configures the validatable.
Returns:FormBuilder<T>