DxRibbonComboBoxItem<TData, TValue>.Data Property
Specifies a collection that supplies data for the ribbon combo box item.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v25.2.dll
NuGet Package: DevExpress.Blazor
Declaration
[DefaultValue(null)]
[Parameter]
public IEnumerable<TData> Data { get; set; }
Property Value
| Type | Default | Description |
|---|---|---|
| IEnumerable<TData> | null | A data collection. |
Remarks
Use the Data property to bind the ribbon combo box item to a data collection or enumeration. Initialize this object in the OnInitialized lifecycle method or before this method is invoked.
...
<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;
}

Implements
DevExpress.Blazor.Ribbon.IRibbonComboBox<TData, TValue>.Data
See Also