Skip to main content
All docs
V25.2
  • RibbonComboBoxValueChangedEventArgs<TData, TValue>.Item Property

    Returns information about a combo box editor.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.2.dll

    NuGet Package: DevExpress.Blazor

    Declaration

    public IRibbonComboBox<TData, TValue> Item { get; }

    Property Value

    Type Description
    IRibbonComboBox<TData, TValue>

    An object that contains information about a combo box editor.

    Remarks

    The following code snippet displays the EditText property of the Ribbon combo box editor when the value changes:

    <DxRibbon NodeEvent="OnNodeEvent">
        <DxRibbonTab Text="Home">
            <DxRibbonGroup>
                <DxRibbonComboBoxItem Data="FontSizes"
                                      Value="@CurrentFontSize"
                                      TextFieldName="@nameof(FontSizeInfo.Size)" />
            </DxRibbonGroup>
        </DxRibbonTab>
    </DxRibbon>
    
    <p>@Notification</p>
    
    @code {
        private FontSizeInfo CurrentFontSize { get; set; }
        private IEnumerable<FontSizeInfo> FontSizes => FontSizeInfo.DefaultFontSizes;
        string Notification = "";
    
        private void OnNodeEvent(RibbonNodeEventArgs args) {
            if(args is RibbonComboBoxValueChangedEventArgs<FontSizeInfo, FontSizeInfo> eventArgs) {
                Notification = $"Font size: {eventArgs.Item.EditText}";
            }
        }
    }
    
    See Also