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

Defines the fluent API for configuring the FormItem settings.

Definition

Constructors

Initialization for the FormItem

C#
public FormItem()

Properties

Defines the field size when grid layout is used.

C#
public double? ColSpan { get; set; }

Defines the field size when grid layout is used.

C#
public List<FormItemColSpan> ColSpanSettings { get; set; }

Defines the editor widget type. Available options are: DropDown widgets - "AutoComplete", "DropDownList", "ComboBox", "MultiSelect", "DropDownTree", "MultiColumnComboBox"; DatePicker widgets - "DateInput", "DatePicker", "DateTimePicker", "TimePicker"; Input widgets - "NumericTextBox", "MaskedTextBox", "Switch", "Rating", "Slider", "ColorPicker", Editor widget - "Editor" or Upload widget - "Upload".

C#
public string Editor { get; set; }
C#
public IFormEditor EditorComponent { get; set; }

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

C#
public string EditorTemplate { get; set; }
C#
public ClientHandlerDescriptor EditorTemplateHandler { get; set; }

The id for the EditorTemplate

C#
public string EditorTemplateId { get; set; }

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

C#
public string Field { get; set; }

Grid layout settings.

C#
public FormGridSettings Grid { get; set; }

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

C#
public string Hint { get; set; }

Defines the field id.

C#
public string Id { get; set; }

Defines the attributes that are applied to the input element.

C#
public IDictionary<string, object> InputHtmlAttributes { get; }
Property Value:

The HTML attributes.

Gets the nested items collection of the item.

C#
public List<FormItem> Items { get; set; }

Configures the field label.

C#
public FormItemLabelSettings Label { get; set; }

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..

C#
public string Layout { get; set; }

Defines the field name.

C#
public string Name { get; set; }

Defines the field title.

C#
public string Title { get; set; }

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

C#
public string Type { get; set; }

Methods

Serialize current instance to Dictionary

C#
protected override void Serialize(IDictionary<string, object> json)
Parameters:jsonIDictionary<string, object>

Overrides: JsonObject.Serialize(IDictionary<string, object>)

Extension Methods