DxRibbonComboBoxItem<TData, TValue>.Value Property
Specifies the combobox item value.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.2.dll
NuGet Package: DevExpress.Blazor
Declaration
[Parameter]
public TValue Value { get; set; }
Property Value
Type | Description |
---|---|
TValue | The item value. |
Remarks
Use the Value
property to specify the editor’s value or to bind the value to a data source object. You can use the @bind attribute to bind the Value
property to a data field. Refer to the following topic for details: Two-Way Data Binding.
To respond to the value change, handle the ValueChanged event.
...
<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;
}
See Also