Skip to main content
All docs
V25.2
  • RibbonComboBoxEditTextChangedEventArgs<TData, TValue> Class

    Contains data for the EditTextChanged event.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.2.dll

    Declaration

    public class RibbonComboBoxEditTextChangedEventArgs<TData, TValue> :
        RibbonValueChangedEventArgsGeneric<string>

    Type Parameters

    Name Description
    TData

    The data item type.

    TValue

    The new editor value.

    Remarks

    Use the RibbonComboBoxEditTextChangedEventArgs class to identify the event type in the NodeEvent event handler.

    The following code snippet displays the text typed into the Ribbon combo box editor:

    <DxRibbon NodeEvent="OnNodeEvent">
        <DxRibbonTab Text="Home">
            <DxRibbonGroup>
                <DxRibbonComboBoxItem Data="FontSizes"
                                      Value="@CurrentFontSize"
                                      TextFieldName="@nameof(FontSizeInfo.Size)"
                                      AllowUserInput="true" />
            </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 RibbonComboBoxEditTextChangedEventArgs<FontSizeInfo, FontSizeInfo> eventArgs) {
                Notification = $"Font size: {eventArgs.Item.EditText}";
            }
        }
    }
    

    Inheritance

    Object
    EventArgs
    DevExpress.Blazor.Ribbon.Internal.RibbonEventArgs
    DevExpress.Blazor.Ribbon.Internal.RibbonNodeEventArgs
    DevExpress.Blazor.Ribbon.Internal.RibbonValueChangedEventArgs
    DevExpress.Blazor.Ribbon.Internal.RibbonValueChangedEventArgsGeneric<String>
    RibbonComboBoxEditTextChangedEventArgs<TData, TValue>
    See Also