FormItem
Defines the fluent API for configuring the FormItem settings.
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class FormItem : JsonObject
Inheritance: objectJsonObjectFormItem
Inherited Members
Constructors
Initialization for the FormItem
public FormItem()
Properties
Defines the field size when grid layout is used.
public double? ColSpan { get; set; }
Defines the field size when grid layout is used.
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".
public string Editor { get; set; }
public IFormEditor EditorComponent { get; set; }
The template which the widget will use to create the field editor.
public string EditorTemplate { get; set; }
public ClientHandlerDescriptor EditorTemplateHandler { get; set; }
The id for the EditorTemplate
public string EditorTemplateId { get; set; }
Maps to the model field which will be configured and sets the name of the input.
public string Field { get; set; }
Grid layout settings.
public FormGridSettings Grid { get; set; }
Defines the hint text that will be shown underneath the form editor.
public string Hint { get; set; }
Defines the attributes that are applied to the input element.
public IDictionary<string, object> InputHtmlAttributes { get; }
The HTML attributes.
Gets the nested items collection of the item.
public List<FormItem> Items { get; set; }
Configures the field label.
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..
public string Layout { get; set; }
Methods
Serialize current instance to Dictionary
protected override void Serialize(IDictionary<string, object> json)
Overrides: