Skip to main content

BootstrapComboBoxProperties.DropDownStyle Property

Gets or sets a value that specifies the manner in which end users can change the edit value of the dropdown list editor.

Namespace: DevExpress.Web.Bootstrap

Assembly: DevExpress.Web.Bootstrap.v24.1.dll

NuGet Package: DevExpress.Web.Bootstrap

Declaration

[DefaultValue(DropDownStyle.DropDownList)]
public DropDownStyle DropDownStyle { get; set; }

Property Value

Type Default Description
DropDownStyle DropDownList

One of the DropDownStyle enumeration values.

Available values:

Name Description
DropDown

End users are allowed to change the editor’s edit value by either selecting an item from the dropdown list or entering new values into the edit box.

DropDownList

End users are allowed to change the editor’s edit value only by selecting an item from the dropdown list.

Remarks

Use the DropDownStyle property to control the manner in which the combo box editor allows end users to manipulate its edit value. Depending upon this property’s value, users can change the edit value by simply selecting an item from among the predefined items (DropDownStyle.DropDownList) or they can also input new values into the editor’s edit box (DropDownStyle.DropDown).

The DropDownStyle property is set to DropDownStyle.DropDownList by default. This means that the Combo Box does not allow values that are not listed within the editor’s server-side BootstrapComboBox.Items collection. Additionally, modifications to the client-side item collection are not synchronized with the server side, regardless of the BootstrapComboBox.EnableSynchronization property’s value.

Note

View the Demo To see this feature in action, please refer to the following online demo: DropDown Style.

The DropDownStyle property synchronizes its value with the editor’s BootstrapComboBox.DropDownStyle property.

See Also