Filters
Data Grid reuses Niko Table filters. There is no separate grid/filters layer.
The Data Grid does not ship its own grid/filters/ directory. Sort, filter, and faceted UIs come from Niko Table and stay correct because focus/edits are id-addressed (not display index).
How filtering works with the grid
Section titled “How filtering works with the grid”- Build columns and toolbar filters as you would for any Niko Table.
- Pass
grid.rowsintoDataTableRootasdata. - Wrap the table in
<DataGrid>: keyboard nav and selection read display order after filter/sort. - Cell editors keep using
{ rowId, columnId }, so filtered-out rows retain state.
<DataTableRoot data={grid.rows} columns={columns} getRowId={(r) => r.id}> <DataTableToolbarSection> <DataTableSearchFilter /> <DataTableFacetedFilter columnId="status" title="Status" /> </DataTableToolbarSection> <DataGrid grid={grid}> <DataTable>…</DataTable> </DataGrid></DataTableRoot>Related docs
Section titled “Related docs”| Topic | Link |
|---|---|
| Filter primitives (Table*) | Filters overview |
| Context-aware filter UIs | Components overview |
| Faceted example | Faceted Filter Table |
| Advanced filter example | Advanced Table |
| Full grid demo with filters | Introduction |