ComboBox
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class ComboBox : DropDownListBase, IWidget, IHtmlAttributesContainer, IScriptableComponent, IFormEditor
Inheritance: objectWidgetBaseListBaseDropDownListBaseComboBox
Implements:
Inherited Members
Constructors
public ComboBox(ViewContext viewContext, IJavaScriptInitializer initializer, ViewDataDictionary viewData, IUrlGenerator urlGenerator)
Properties
public string CascadeFrom { get; set; }
public string CascadeFromField { get; set; }
public string CascadeFromParentField { get; set; }
Applicable to a parent ComboBox in a cascading scenario. If set to true cascading will be triggered upon custom input in the parent widget. When set to false (default) the child will not cascade and it will be disabled upon setting custom input in the parent ComboBox. Cascade on custom values works only when cascadeFromParentField is not set for the child combo, or it points to the dataValueField of the parent.
public bool? CascadeOnCustomValue { get; set; }
public bool? ClearButton { get; set; }
public string DataValueField { get; set; }
Sets a value controlling how the color is applied.
public FillMode? FillMode { get; set; }
public bool? HighlightFirst { get; set; }
Defines the "inputmode" attribute of the inner <input /> element. The attribute specifies the type of on-screen keyboard displayed when the user focuses the input.
public string InputMode { get; set; }
public MessagesSettings Messages { get; set; }
public string Placeholder { get; set; }
public PrefixOptionsSettings PrefixOptions { get; set; }
public int? SelectedIndex { get; set; }
Sets the size of the component.
public ComponentSize? Size { get; set; }
public SuffixOptionsSettings SuffixOptions { get; set; }
public bool? SyncValueAndText { get; set; }
Methods
public override IDictionary<string, object> Serialize()
Overrides:
Implements:
Writes the HTML.
protected override void WriteHtml(HtmlTextWriter writer)
Overrides:
Writes the initialization script.
public override void WriteInitializationScript(TextWriter writer)
The writer.
Overrides: