FormBuilder<T>
Defines the fluent API for configuring the Kendo UI Form
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class FormBuilder<T> : WidgetBuilderBase<Form<T>, FormBuilder<T>>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<Form<T>, FormBuilder<T>>FormBuilder<T>
Implements:
Inherited Members
Constructors
Initializes a new instance of the FormBuilder<T> class.
Methods
Specifies the template which is used for rendering the From buttons.
public FormBuilder<T> ButtonsTemplate(string value)
The value that configures the buttons template.
Returns:FormBuilder<T>
A FormBuilder<T> instance that can be used to configure the Form.
Specifies the template which is used for rendering the From buttons.
public FormBuilder<T> ButtonsTemplate<TModel>(TemplateBuilder<TModel> template)
The value that configures the buttons template.
Returns:FormBuilder<T>
A FormBuilder<T> instance that can be used to configure the Form.
Specifies the template which is used for rendering the From buttons.
public FormBuilder<T> ButtonsTemplateId(string value)
The value that configures the buttons template.
Returns:FormBuilder<T>
A FormBuilder<T> instance that can be used to configure the Form.
Specifies the template which is used for rendering the From buttons.
public FormBuilder<T> ButtonsTemplateView(IHtmlContent templateView)
FormBuilder<T>
A FormBuilder<T> instance that can be used to configure the Form.
Specifies if the clearButton should be rendered on initialization.
public FormBuilder<T> ClearButton(bool value)
The value that configures the clearbutton.
Returns:FormBuilder<T>
A FormBuilder<T> instance that can be used to configure the Form.
Configures the client-side events.
public FormBuilder<T> Events(Action<FormEventBuilder> configurator)
The client events action.
Returns:FormBuilder<T>
A FormBuilder<T> instance that can be used to configure the Form.
Specifies if the first editor of the form will be focused on initialization.
public FormBuilder<T> FocusFirst(bool value)
The value that configures the focus first.
Returns:FormBuilder<T>
A FormBuilder<T> instance that can be used to configure the Form.
Callback function that could be used to change the default format of the automatically generated labels. Takes effect only if the Items option is not specified and labels are being automatically generated.
public FormBuilder<T> FormatLabel(Func<object, object> handler)
The value that configures the formatlabel action.
Returns:FormBuilder<T>
A FormBuilder<T> instance that can be used to configure the Form.
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>
A FormBuilder<T> instance that can be used to configure the Form.
An object that provides the initial data for the Form.
public FormBuilder<T> FormData(object value)
The data model object.
Returns:FormBuilder<T>
A FormBuilder<T> instance that can be used to configure the Form.
Grid layout settings.
public FormBuilder<T> Grid(Action<FormGridSettingsBuilder<T>> configurator)
The action that configures the grid.
Returns:FormBuilder<T>
A FormBuilder<T> instance that can be used to configure the Form.
A JavaScript array that contains the Form's items configuration.
public FormBuilder<T> Items(Action<FormItemFactory<T>> configurator)
The action that configures the items.
Returns:FormBuilder<T>
A FormBuilder<T> instance that can be used to configure the Form.
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>
A FormBuilder<T> instance that can be used to configure the Form.
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>
A FormBuilder<T> instance that can be used to configure the Form.
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>
A FormBuilder<T> instance that can be used to configure the Form.
Sets a value controlling the size of the input.
public FormBuilder<T> Size(ComponentSize? value)
The value for Size
Returns:FormBuilder<T>
A FormBuilder<T> instance that can be used to configure the Form.
Configures the SmartPasteButton integration for AI-powered form filling. When enabled, adds a SmartPasteButton that can intelligently parse clipboard content and distribute it to appropriate form fields using AI processing.
public FormBuilder<T> SmartPaste(Action<SmartPasteButtonBuilder> configurator)
The action that configures the smartpaste.
Returns: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>
A FormBuilder<T> instance that can be used to configure the Form.