Data Grid - Multi filters
Apply multiple filters at the same time.
Multi filters allow filtering rows by multiple columns with multiple criteria.
To add more filters, use the Add Filter
button on the filter panel.
The following demo lets you filter the rows according to several criteria at the same time.
Name
Rating
Country
Created on
Is admin?
Curtis Stephens
1

12/21/2024
Nettie Sandoval
4

1/29/2025
Ryan Watts
2

1/23/2025
Martha Flores
5

1/8/2025
Gerald Gray
2

8/20/2024
Nicholas Matthews
3

9/18/2024
Micheal Weaver
5

2/9/2025
Jeffery Frazier
3

6/26/2024
One filter per column
You can also limit to only one filter per column while still allowing to filter other columns. For this, use the filterColumns
and getColumnForNewFilter
props available in slotProps.filterPanel
.
Use cases
- Sometimes it's a limitation of some server-side filtering APIs to only allow one filter per column.
- You can also write custom logic to prevent some columns from being shown as possible filters.
This demo implements a basic use case to prevent showing multiple filters for one column.
Name
Rating
Country
Created on
Is admin?
Luis Fernandez
4

6/18/2024
Minerva Herrera
3

8/1/2024
Adeline Stevens
5

7/18/2024
Marie Horton
5

7/17/2024
Isabella McCormick
4

12/14/2024
Dustin Armstrong
5

12/16/2024
Dylan Greene
5

12/9/2024
Allen Nichols
4

8/23/2024
Disable action buttons
To disable Add filter
or Remove all
buttons, pass disableAddFilterButton
or disableRemoveAllButton
to componentsProps.filterPanel
.
Name
Rating
Country
Created on
Is admin?
Jane Romero
5

7/30/2024
Glen Clark
2

3/14/2025
Harriett Cobb
1

11/10/2024
Oscar Boone
4

6/23/2024
Isabelle Erickson
2

11/27/2024
Alta Horton
1

5/9/2024
Louis Mann
5

11/25/2024
Gavin Schneider
5

12/1/2024