Skip to main content
All docs
V24.1

DxDropDownListEditorBase<TData, TValue>.NullText Property

Specifies the editor’s prompt text when the editor’s value is null.

Namespace: DevExpress.Blazor.Base

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

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

Property Value

Type Default Description
String null

A string value that specifies the prompt text.

Remarks

Use the NullText property to display the prompt text in TagBox when its value is null.

You can also set the ClearButtonDisplayMode property to Auto to show the Clear button when the editor has a non-null value. Users can click this button to clear the editor’s value (set it to null).

<DxTagBox NullText="Select countries..."
          Data="@CountryData.Countries"
          @bind-Values="@SelectedCountries"
          TextFieldName="@nameof(Country.CountryName)"
          ClearButtonDisplayMode="DataEditorClearButtonDisplayMode.Auto" />
</DxTagBox>

@code {
    IEnumerable<Country> SelectedCountries { get; set; }
}

TagBox Clear Button

Run Demo: TagBox - Clear Button and Placeholder Run Demo: ComboBox - Clear Button and Placeholder

Implements

DevExpress.Blazor.IDropDownListEditorBase<TData, TValue>.NullText
See Also