Skip to content
Niko Table

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.

  1. Build columns and toolbar filters like any Niko Table.
  2. Pass grid.rows into DataTableRoot as data.
  3. Wrap the table in <DataGrid>. Keyboard nav and selection follow the display order after filter and sort.
  4. 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>
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