Select theme:

Material 3

Filter by multiple fields as you type (Blazor)link

This guide demonstrates how to filter DataGrid records by multiple fields as you type.

  1. Create new application and add new MSSQL data-source connected to Northwind database. image

  2. Drop DataGrid component to Radzen design surface, bind it to Customers. image

  3. Drop TextBox component above DataGrid, set width to 100% and Search ... for placeholder image

  4. Create the following Reload method in the page partial class and define custom @oninput attribute for the TextBox component equal to @Reload.

    public partial class CustomersComponent
    {
        string search = "";

        protected async Task Reload(Microsoft.AspNetCore.Components.ChangeEventArgs args)
        {
            search = $"{args.Value}";

            await Load();
        }
    }

image image

  1. Open Page Load query builder and define filter for CustomerID or CompanyName using TextBox component value as expession. image image

  2. Run the application to filter customers image

In this article —
    © 2016-2025 Radzen Ltd. All Rights Reserved.
    Designed and developed with ❤️ in Radzen Blazor Studio.

    Select theme:

    Material 3