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

FormItemBuilder

Defines the fluent API for configuring the FormItem settings.

Methods

Type(System.String)

Defines the type of the item - "fieldset" or "group".

Parameters

value - System.String

The value that configures the type.

Field(System.String)

Maps to the model field which will be configured and sets the name of the input.

Parameters

value - System.String

The value that configures the field.

Editor(System.String)

Defines the editor widget type. Available options are: DropDown widgets - "AutoComplete", "DropDownList", "ComboBox", "MultiSelect", "DropDownTree", "MultiColumnComboBox"; DatePicker widgets - "DateInput", "DatePicker", "DateTimePicker", "TimePicker"; Input widgets - "TextBox", "TextArea", "NumericTextBox", "MaskedTextBox", "RadioGroup", "CheckBoxGroup", "Switch", "Rating", "Slider", "ColorPicker", "ColorGradient", "ColorPalette", "FlatColorPicker", "hidden" or Editor widget - "Editor".

Parameters

value - System.String

The value that configures the editor.

EditorTemplate(System.String)

The template which the widget will use to create the field editor.

Parameters

value - System.String

The value that configures the editortemplate.

EditorTemplateId(System.String)

The template which the widget will use to create the field editor.

Parameters

value - System.String

The value that configures the editortemplate.

Label(System.Action)

Defines the field label.

Parameters

configurator - System.Action<FormItemLabelSettingsBuilder>

The action that configures the label.

Label(System.String)

Defines the field label.

Parameters

value - System.String

Id(System.String)

Defines the field id.

Parameters

value - System.String

The value that configures the id.

Title(System.String)

Defines the field title.

Parameters

value - System.String

The value that configures the title.

Name(System.String)

Defines the field label.

Parameters

value - System.String

The value that configures the label.

Hint(System.String)

Defines the hint text that will be shown underneath the form editor.

Parameters

value - System.String

The value that configures the hint.

Field(System.Linq.Expressions.Expression)

Maps to the model field which will be configured and sets the name of the input.

Parameters

expression - System.Linq.Expressions.Expression<Func>

The expression that specifies the field, based on the bound model.

Editor(System.Action)

Maps to the model field which will be configured and sets the name of the input.

Parameters

configurator - System.Action<FormItemEditorBuilder>

EditorTemplateHandler(System.String)

Parameters

value - System.String

EditorTemplateHandler(System.Func)

The template which the widget will use to create the field editor.

Parameters

value - System.Func<Object,Object>

The value for EditorTemplate

ColSpan(System.Double)

Defines the field size when grid layout is used.

Parameters

value - System.Double

InputHtmlAttributes(System.Object)

Defines the attributes that are applied to the input element.

Parameters

attributes - System.Object

The HTML attributes.

InputHtmlAttributes(System.Collections.Generic.IDictionary)

Defines the attributes that are applied to the input element.

Parameters

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

The HTML attributes.

In this article
Not finding the help you need?