blazor-devexpress-dot-blazor-dot-ribboncomboboxedittextchangedeventargs-2.md
Contains data for the EditTextChanged event.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
public class RibbonComboBoxEditTextChangedEventArgs<TData, TValue> :
RibbonValueChangedEventArgsGeneric<string>
| Name | Description |
|---|---|
| TData |
The data item type.
| | TValue |
The new editor value.
|
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}";
}
}
}
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