Skip to main content
All docs
V25.1
  • 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.1.dll

    NuGet Package: DevExpress.Blazor

    Declaration

    [Parameter]
    public string NullText { get; set; }

    Property Value

    Type Description
    String

    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

    See Also