Niko Grid Filters
Niko Grid reuses Niko Table filters. There is no separate grid/filters layer.
Niko Grid has no filters of its own. Sort, filter, and faceted UIs come from Niko Table. They stay correct because focus and edits use the row id, not the display index.
How filtering works with the grid
Section titled “How filtering works with the grid”- Build columns and toolbar filters like any Niko Table.
- Pass
grid.rowsintoDataTableRootasdata. - Wrap the table in
<DataGrid>. Keyboard nav and selection follow the display order after filter and sort. - Cell editors use
{ rowId, columnId }, so filtered-out rows keep their 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 |