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

    Specifies the prompt text displayed in the editor when its value is null.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.2.dll

    NuGet Package: DevExpress.Blazor

    Declaration

    [DefaultValue(null)]
    [Parameter]
    public string NullText { get; set; }

    Property Value

    Type Default Description
    String null

    The prompt text.

    Remarks

    Use the NullText property to display prompt text in the ribbon combo box item when its value is null.

    ...
    <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;
    }
    

    Ribbon combobox item

    Implements

    DevExpress.Blazor.Ribbon.IRibbonComboBox<TData, TValue>.NullText
    See Also