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

    NuGet Package: DevExpress.Blazor

    Declaration

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

    Property Value

    Type Description
    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.

    <DxListBox Data="Planets"
               @bind-Values="SelectedPlanets"
               ShowSearchBox="true"
               SearchBoxNullText="Search for a planet..." />
    
    @code {
        IEnumerable<string> SelectedPlanets { get; set; } = new List<string>();
    }
    

    Search box placeholder

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

    Implements

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