Skip to main content
All docs
V25.1
  • DxRibbonComboBoxItem<TData, TValue> Class

    A ribbon item that displays a combo box editor.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.1.dll

    NuGet Package: DevExpress.Blazor

    Declaration

    public class DxRibbonComboBoxItem<TData, TValue> :
        DxRibbonButtonBase<RibbonComboBoxRender<TData, TValue>, RibbonItemClickEventArgs>

    Type Parameters

    Name Description
    TData

    The type of data.

    TValue

    The type of values.

    Remarks

    A combo box item allows users to select predefined items from a drop-down list or type custom values directly.

    Use the Value property to specify the editor’s value or to bind the value to a data source object. Handle the ValueChanged event to respond to the value change.

    ...
    <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

    Inheritance

    Object
    ComponentBase
    DxComponentBase
    DxRibbonItemBase<DevExpress.Blazor.Navigation.Internal.RibbonComboBoxRender<TData, TValue>>
    DxRibbonElementBase<DevExpress.Blazor.Navigation.Internal.RibbonComboBoxRender<TData, TValue>>
    DxRibbonButtonBase<DevExpress.Blazor.Navigation.Internal.RibbonComboBoxRender<TData, TValue>, DevExpress.Blazor.Navigation.Internal.RibbonItemClickEventArgs>
    DxRibbonComboBoxItem<TData, TValue>
    See Also