Skip to main content

DropDownWidthMode Enum

Lists values that specify the width of a drop-down list.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

public enum DropDownWidthMode

Members

Name Description
ContentOrEditorWidth

The list displays item text completely. The minimum list width matches the editor.

ContentWidth

The list width is equal to the width of the longest list item.

EditorWidth

The list width matches the editor. List items are cut if they do not fit.

Remarks

The default width of drop-down lists is set to ContentOrEditorWidth.

ComboBox Content or Editor Width

The following code sets the width of the drop-down list to the editor width.

@using BlazorApp.Data

<DxTagBox Data="@Staff.DataSource"
          TextFieldName="@nameof(Person.Text)"
          DropDownWidthMode="DropDownWidthMode.EditorWidth">
</DxTagBox>

ComboBox Editor Width

Run Demo: ComboBox – Drop-Down List Width

Run Demo: TagBox – Drop-Down List Width

See Also