dropdownList Element
Applies To: Windows Server 2008
The dropdownList element represents a drop-down listparameter. The dropdownList element must be associated with an enum element defined in the elements element.
Syntax
<dropdownList refId="<placeholderID>"
noSort="true|false"
defaultItem ="<placeholderNumericValue>">
Placeholder label:</dropdownList>
where Placeholder label is label text for the parameter.
Attributes
Attributes | Required | Description |
---|---|---|
Yes |
A mapping to the element. |
|
No |
If true, create a spin control; otherwise, create a text box for numeric entry. This attribute is true, by default. |
|
No |
The numerical value identifying the default choice of the list of items. The item list is numbered starting from 0. |
Child elements
There are no child elements associated with this element.
Remarks
The dropdownList element is associated with a drop-down list parameter in the Local Group Policy Editor or Group Policy Management Console. The dropdownList element will require a matching enum element in the corresponding .admx file with matching id attribute as declared in the presentation element containing the dropdownList element.
Examples
This XML fragment is an example of a dropdownList element with the first item in the list displayed as the default choice.
<dropdownList refId="Sample_Dropdownlist_Box" defaultItem="0">Drop-down list box choices:</dropdownList>