Back to Devexpress

DxDropDownBox.DropDownWidthMode Property

blazor-devexpress-dot-blazor-dot-dxdropdownbox-add869d3.md

latest1.7 KB
Original Source

DxDropDownBox.DropDownWidthMode Property

Specifies the width of the drop-down window.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(DropDownWidthMode.ContentOrEditorWidth)]
[Parameter]
public DropDownWidthMode DropDownWidthMode { get; set; }

Property Value

TypeDefaultDescription
DropDownWidthModeContentOrEditorWidth

Width mode.

|

Available values:

NameDescription
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

Use the DropDownWidthMode property to specify the width of the drop-down window. The following values are available:

  • ContentOrEditorWidth (Default) - The window displays content completely. The minimum window width matches the editor.

  • ContentWidth - The window width is equal to the content width.

  • EditorWidth - The window width matches the editor. Content is cropped if it does not fit.

Implements

DropDownWidthMode

See Also

DxDropDownBox Class

DxDropDownBox Members

DevExpress.Blazor Namespace