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

FormItem class.

Definition

Namespace:Kendo.Mvc.UI

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class FormItem : IFormItem

Inheritance: objectFormItem

Implements: IFormItem

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

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", "OTPInput", Editor widget - "Editor" or Upload widget - "Upload".

C#
public string Editor { get; set; }

EditorComponent member.

C#
public IFormEditor EditorComponent { get; set; }

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

C#
public string EditorTemplate { get; set; }

Gets or sets the EditorTemplateHandler.

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; }

Implements: IFormItem.Field

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; set; }
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 IFormItemLabelSettings Label { get; set; }

Implements: IFormItem.Label

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; }

Metadata member.

C#
public ModelMetadata Metadata { get; set; }

Implements: IFormItem.Metadata

Defines the field name.

C#
public string Name { get; set; }

Defines the field title.

C#
public string Title { get; set; }

Implements: IFormItem.Title

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

C#
public string Type { get; set; }

Methods

Serialize current instance to Dictionary

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>

Implements: IFormItem.Serialize()