Skip to content

Data Grid — Excel filter

Data Display

A spreadsheet-style filter menu in each column header, chosen with filterMode="excel" (or a column's filter.mode ): sort, clear, then tick the column's values or write a condition (operator and value, optionally a second one joined with And / Or). Ticked values produce the same 'in' filter as a multi-select filter, so filterChange , stateChange and server code stay the same.

Examples

Excel filter

With filterMode="excel" each header gets a filter button instead of a filter row. The menu sorts the column, clears its filter, searches the values and lists every distinct value (empty cells as "(Blanks)"); OK applies the ticked ones. Switch to Condition for an operator and a value, plus an optional second one joined with And / Or. The values come from the rows the other columns' filters leave, as in a spreadsheet. Every column has the Excel filter and there is no filter row, Price included: a number column offers its values and number conditions.

No filters active
Wireless Headphones Pro Electronics Sonora Active 149.99
Ergonomic Office Chair Furniture Sitwell Active 429.00
USB-C Hub 7-in-1 Electronics Active 49.95
Standing Desk 140cm Furniture Sitwell Active 599.00
Mechanical Keyboard MX Electronics Keyforge Active 189.00
Webcam 4K Ultra Electronics Sonora Discontinued 219.99
Laptop Stand Aluminum Accessories Active 79.99
Noise-Cancel Earbuds Electronics Sonora Draft 99.00
LED Desk Lamp Accessories Lumen Active 59.99
Cable Organizer Kit Accessories Lumen Discontinued 24.50

Active filters: none

Excel filter in server mode

In server mode the grid only holds one page, so filterValuesProvider loads a column's values when its menu opens: it receives the field and the current GridServerState (apply the other columns' filters, as the local grid does). The mock server here answers both calls with the shared grid engine ( grid-core ), after a short delay that shows the loading state.

No filters active