Skip to main content
A newer version of this page is available. .

DxTagBox<TData, TValue>.NullText Property

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

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v20.2.dll

NuGet Package: DevExpress.Blazor

Declaration

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

Property Value

Type Description
String

A string value that specifies the prompt text.

Remarks

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..."
          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

See Also