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.

<dropdownList refId="<placeholderID>"
         defaultItem ="<placeholderNumericValue>">
     Placeholder label:</dropdownList>

where Placeholder label is label text for the parameter.


Attributes Required Description

refId Attribute


A mapping to the element.

noSort Attribute


If true, create a spin control; otherwise, create a text box for numeric entry. This attribute is true, by default.

defaultItem Attribute


The numerical value identifying the default choice of the list of items. The item list is numbered starting from 0.

There are no child elements associated with this element.

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.

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>

Community Additions