[]
DropDown control (abstract) contains an input element and a button used to show or hide the drop-down.
public abstract class DropDown<T> : ItemsBoundControl<T>, IHtmlString, ITemplate, IDropDown
Name | Description |
---|---|
T |
Derived classes must override the _createDropDown method to create whatever editor they want to show in the drop down area (a list of items, a calendar, a color editor, etc).
Name | Description |
---|---|
DropDown(HtmlHelper, string) | Creates one DropDown<T> instance. |
Name | Description |
---|---|
AutoExpandSelection | Gets or sets a value that indicates whether the control should automatically expand the selection to whole words/numbers when the control is clicked. |
ClickAction | Gets or sets a value that specifies the action to perform when the user clicks the input element in the control. |
DropDownCssClass | Gets or sets a CSS class name to add to the control's drop-down element. |
InputType | Gets or sets the "type" attribute of the HTML input element hosted by the control. |
IsAnimated | Gets or sets a value that indicates whether the control should use a fade-in animation when displaying the drop-down. |
IsDroppedDown | Gets or sets a value indicating whether the drop down is currently visible. |
IsReadOnly | Gets or sets a value that indicates whether the user can modify the control value using the mouse and keyboard. |
IsRequired | Gets or sets a value indicating whether the control value must be a non-empty string. |
OnClientIsDroppedDownChanged | Occurs after the drop down is shown or hidden. |
OnClientIsDroppedDownChanging | Occurs before the drop down is shown or hidden. |
OnClientTextChanged | Occurs when the value of the Text property changes. |
Placeholder | Gets or sets the string shown as a hint when the control is empty. |
ShowDropDownButton | Gets or sets a value indicating whether the control should display a drop-down button. |
Text | Gets or sets the text shown on the control. |