DropDownList
Class
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
C#
public class DropDownList : DropDownListBase, IWidget, IHtmlAttributesContainer, IScriptableComponent, IFormEditor
Inheritance: objectWidgetBaseListBaseDropDownListBaseDropDownList
Implements:
Inherited Members
Constructors
C#
public DropDownList(ViewContext viewContext, IJavaScriptInitializer initializer, ViewDataDictionary viewData, IUrlGenerator urlGenerator)
Properties
C#
public string CascadeFrom { get; set; }
C#
public string CascadeFromField { get; set; }
C#
public string CascadeFromParentField { get; set; }
C#
public string DataValueField { get; set; }
Sets a value controlling how the color is applied.
C#
public FillMode? FillMode { get; set; }
When filtering is enabled, allows custom title to be defined for the filter input element.
C#
public string FilterTitle { get; set; }
C#
public DropDownListMessagesSettings Messages { get; set; }
C#
public object OptionLabel { get; set; }
C#
public string OptionLabelTemplate { get; set; }
C#
public string OptionLabelTemplateHandler { get; set; }
C#
public string OptionLabelTemplateId { get; set; }
C#
public int? SelectedIndex { get; set; }
Sets the size of the component.
C#
public ComponentSize? Size { get; set; }
C#
public string ValueTemplate { get; set; }
C#
public string ValueTemplateHandler { get; set; }
C#
public string ValueTemplateId { get; set; }
Methods
C#
public override IDictionary<string, object> Serialize()
Overrides:
Implements:
Writes the HTML.
C#
protected override void WriteHtml(HtmlTextWriter writer)
Overrides:
Writes the initialization script.
C#
public override void WriteInitializationScript(TextWriter writer)
The writer.
Overrides: