DataGrid / Filtering / Menu Filter

Blazor DataGrid Example - Menu Filter Interface

Loading Syncfusion Blazor Server Demos…

1 of 6 pages (70 items)

This sample demonstrates how to use the menu filter UI to filter DataGrid columns.

The Blazor DataGrid filtering feature allows users to view records based on filter criteria. To enable filtering, set the AllowFiltering property to true.

Change the filter type using the Type property of the GridFilterSettings component. The following filter types are supported:

  • Filterbar - Text-based input row
  • Menu - Dropdown filter menu
  • Checkbox - Checkbox value selection
  • Excel - Excel-like advanced filtering

The DataGrid allows customization of default filter components in the filter menu dialog through the FilterEditorSettings property of each grid column. This enables you to tailor filter behavior and appearance to your specific requirements.

In this demo, the following customizations are implemented:

  • Order ID: Uses a NumericTextBox component with ShowClearButton enabled and Min value set to 10,000.
  • Customer ID: Customizes the AutoComplete component by disabling Autofill and setting DebounceDelay to 2,000 ms.
  • Ship City: Customizes the AutoComplete component by enabling Autofill and setting MinLength to 2.
  • Order Time: Uses the TimePicker component with Step interval set to 10 minutes.

In this demo, click the filtering icon in the column header to display the menu filter UI.

For more detailed information about filter menus, refer to the filter menu documentation.

Transform your Blazor web apps today with Syncfusion® Blazor components
145+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE