Skip to main content

DxTagBox<TData, TValue>.NullText Property

Specifies the TagBox’s prompt text when the editor’s value is NULL.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v23.2.dll

NuGet Package: DevExpress.Blazor


public string NullText { get; set; }

Property Value

Type Description

A string value that specifies the prompt text.


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

You can also set the ClearButtonDisplayMode property to Auto to show the Clear button when the TagBox has tags. Users can click this button to clear all the displayed tags (set the Tags property to null).

<DxTagBox NullText="Select countries..."
          ClearButtonDisplayMode="DataEditorClearButtonDisplayMode.Auto" />

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

TagBox Clear Button

Run Demo: TagBox - Clear Button and Placeholder

See Also