Back to Devexpress

DxListBox<TData, TValue>.SearchBoxNullText Property

blazor-devexpress-dot-blazor-dot-dxlistbox-2-bf7e7fa4.md

latest1.9 KB
Original Source

DxListBox<TData, TValue>.SearchBoxNullText Property

Specifies the prompt text displayed in the search box when it is empty.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[Parameter]
public string SearchBoxNullText { get; set; }

Property Value

TypeDescription
String

The prompt text.

|

Remarks

When the ShowSearchBox property is set to true, a search box appears above list items. Users can type text into the search field to filter the list and highlight matching text in items. Use the SearchBoxNullText property to define the text prompt (placeholder) displayed in an empty search box.

razor
<DxListBox Data="Planets"
           @bind-Values="SelectedPlanets"
           ShowSearchBox="true"
           SearchBoxNullText="Search for a planet..." />

@code {
    IEnumerable<string> SelectedPlanets { get; set; } = new List<string>();
}

If the SearchBoxNullText property is omitted, the component uses the value from DxBlazorStringId.SearchBox_NullText localization string as the search box placeholder text.

YouTube video

Implements

DevExpress.Blazor.IListBox<TData, TValue>.SearchBoxNullText

See Also

DxListBox<TData, TValue> Class

DxListBox<TData, TValue> Members

DevExpress.Blazor Namespace