Back to Devexpress

RibbonComboBoxEditTextChangedEventArgs<TData, TValue> Class

blazor-devexpress-dot-blazor-dot-ribboncomboboxedittextchangedeventargs-2.md

latest2.5 KB
Original Source

RibbonComboBoxEditTextChangedEventArgs<TData, TValue> Class

Contains data for the EditTextChanged event.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

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

Type Parameters

NameDescription
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:

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

RibbonComboBoxEditTextChangedEventArgs<TData, TValue> Members

DevExpress.Blazor Namespace