Skip to main content
All docs
V24.2

DxRibbonComboBoxItem<TData, TValue>.Width Property

Specifies the ribbon combo box item width.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[DefaultValue("auto")]
[Parameter]
public string Width { get; set; }

Property Value

Type Default Description
String "auto"

The width, in CSS units.

Remarks

Use the Width property to specify the size of the combo box item.

...
<DxRibbonComboBoxItem Data="FontSizes"
                      @bind-Value="CurrentFontSize"
                      TextFieldName="@nameof(FontSizeInfo.Size)"
                      AllowUserInput="true"
                      NullText="Font Size"
                      Width="120px" />
...
@code {
    private FontSizeInfo CurrentFontSize { get; set; }
    private IEnumerable<FontSizeInfo> FontSizes => FontSizeInfo.DefaultFontSizes;
}

Ribbon combobox item

See Also