The above example shows typical <select> usage. It is given an id attribute to enable it to be associated with a <label> for accessibility purposes, as well as a name attribute to represent the name of the associated data point submitted to the server. Each menu option is defined by an <option> element nested inside the <select>. Each <option> element should have a value attribute containing the data value to submit to the server when that option is selected. If no value attribute is included, the value defaults to the text contained inside the element. You can include a selected attribute on an <option> element to make it selected by default when the page first loads. The <select> element has some unique attributes you can use to control it, such as multiple to specify whether multiple options can be selected, and size to specify how many options should be shown at once. It also accepts most of the general form input attributes such as required, disabled, autofocus, etc. You can further nest <option> elements inside <optgroup> elements to create separate groups of options inside the dropdown. For further examples, see The native form widgets: Drop-down content.
Overrides DropDown.constructor autoExpandSelection: boolean Inherited from DropDown.autoExpandSelection caseSensitiveSearch: boolean Inherited from DropDown.clickAction displayMemberPath: string dropDown: HTMLElement Inherited from DropDown.dropDown dropDownCssClass: string Inherited from DropDown.dropDownCssClass handleWheel: boolean headerPath: string | null hostElement: HTMLElement Inherited from Control.hostElement inputElement: HTMLInputElement Inherited from DropDown.inputElement inputType: string Inherited from DropDown.inputType isAnimated: boolean Inherited from DropDown.isAnimated isContentHtml: boolean isDisabled: boolean Inherited from Control.isDisabled isDroppedDown: boolean Inherited from DropDown.isDroppedDown isEditable: boolean isReadOnly: boolean Inherited from DropDown.isReadOnly isRequired: boolean Inherited from DropDown.isRequired isTouching: boolean Inherited from Control.isTouching isUpdating: boolean Inherited from Control.isUpdating itemFormatter: IItemFormatter itemsSource: any maxDropDownHeight: number maxDropDownWidth: number placeholder: string Inherited from DropDown.placeholder rightToLeft: boolean Inherited from Control.rightToLeft selectedIndex: number selectedItem: any selectedValue: any selectedValuePath: string showDropDownButton: boolean Inherited from DropDown.showDropDownButton showGroups: boolean tabOrder: number Inherited from Control.tabOrder text: string | null Inherited from DropDown.text trimText: boolean virtualizationThreshold: number controlTemplate: string Inherited from DropDown.controlTemplate
Inherited from Control.gotFocus Inherited from Control.invalidInput Inherited from DropDown.isDroppedDownChanged Inherited from DropDown.isDroppedDownChanging Inherited from Control.lostFocus Inherited from Control.refreshed Inherited from Control.refreshing Inherited from DropDown.textChanged |