Skip to main content

DxGrid.SearchBoxNullText Property

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

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

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

Property Value

Type Default Description
String null

A string value that specifies the prompt text.

Remarks

When the ShowSearchBox property is set to true, the Grid displays the search box. Users can type text in the box editor to filter and highlight data. Use the SearchBoxNullText property to specify the prompt text displayed in the search box when the editor is empty.

<DxGrid Data="@Data" ShowSearchBox=true PageSize="6" SearchBoxNullText="Search for a company...">
    <Columns>
        <DxGridDataColumn FieldName="CompanyName" />
        <DxGridDataColumn FieldName="ContactName" SearchEnabled="false" />
        <DxGridDataColumn FieldName="City" SearchEnabled="false" />
        <DxGridDataColumn FieldName="Country" SearchEnabled="false" />
    </Columns>
</DxGrid>

Search Box Overview

For more information about search in the Grid component, refer to the following topic: Search Box in Blazor Grid.

Implements

See Also