Salmon UI Data Grid documentation
A virtualized React 19 data grid, from 10 rows to 1,000,000, with sorting, filtering, grouping, editing, tree rows and export. Every page below embeds live demos; each demo also has a standalone route used by the browser test suites.
Columns
- Columns
Column definitions, widths, alignment, types and formats, visibility, resizing, reordering and auto-size.
- Column chooser
A searchable dialog that shows and hides columns, opened from the toolbar, the column menu or the API.
Frozen Rows and Columns
- Pinned columns and sticky rows
Pin columns to the start or end, fix them in place between the scrolling columns, and keep the first or last rows in view while the body scrolls.
- Pinned rows
Pin records to the top of the grid by data or at runtime; pinned rows follow sorting, filtering and edits and stay outside the page size.
Stacked Headers
- Stacked headers
Group columns under multi-level headers with nested column definitions; operations act on the leaf columns.
Row and Column Spanning
- Row and column spans
Span cells across columns and rows with column
colSpanandrowSpan, or merge equal adjacent values grid-wide withmergeCells.
Toolbar
- Toolbar
Built-in and custom toolbar items, alignment, search, overflow, keyboard navigation and a replaceable toolbar.
Templates
- Templates
Cell, header and row templates, filter, pager, toolbar, editor and empty templates, per-row and per-cell attribute hooks, and the rules templates follow.
Virtual Scroll
- Virtualization
Row and column virtualization, scaled scrolling for millions of rows, measured row heights and the server-rendered initial range.
Performance
- Performance
What the grid re-renders, how to observe it in development, and the budgets that gate every release.
Theming and Appearance
- Theming and appearance
Theming with five color seeds, light and dark schemes, compact density, the font family, a tinted neutral ramp and region surfaces, plus grid lines, alternate rows, hover, row and header height, text wrap, custom icons and stable CSS hooks.
Selection
- Selection
Row, cell and column selection with pointer, keyboard and methods; id-based, persistent and virtualization-safe.
Sorting
- Sorting
Header sorting, multi-column sort, initial sort, custom comparators and sort methods.
Filtering
- Filtering
The filter row, menu, checklist and Excel filter UIs, operators, initial and nested filters, case and accent matching, filter methods and server-side filtering.
Searching
- Searching
The toolbar search box, the search prop with its text, columns, operator and case and accent options, highlighted matches, search methods and events, and server-side search.
Paging
- Paging
The pager, page and page size state, page buttons and sizes, keyboard, localized text, the narrow layout, a custom pager, page methods and events, paging with groups, and cursor paging.
- Server paging and the URL
Remote paging with or without a reported total, the page kept in the query string, view change events and the data error state.
Grouping
- Grouping
Group rows by one or more columns from the drop area, the keyboard or methods; virtualized, with preserved expansion.
Editing
- Editing
Row, batch, dialog and cell editing; built-in and custom editors; command column; edit methods and events; saving through the data source; edit marks; confirm prompts; the unsaved-changes guard; undo and redo.
Validation
- Validation
Column validation rules, custom and async validators, row-level rules, batch validation, messages and their localization, and the inline error wiring.
Clipboard
- Clipboard
Copy cell ranges, selected rows or the focused cell as TSV with or without headers, paste spreadsheet blocks into edit drafts, formatted or raw copy text per column,
onBeforeCopyandonBeforePaste, and the fallbacks when the browser blocks clipboard access.
Aggregates
- Aggregates
Footer, group footer and group caption summaries with built-in and custom aggregate types.
Lazy Load Grouping
- Lazy load grouping
Server-side grouping that loads group captions first and children on demand.
Infinite Scroll
- Infinite scrolling
Remote rows read in blocks as the viewport approaches them, with loading rows, a bounded block cache, a load-next command and server-rendered first blocks.
Data Binding
- Data sources
Local arrays, the Salmon UI JSON protocol, offline, live and application-controlled data sources.
Methods and Commands
- Data Grid API and keyboard hooks
The imperative grid instance and custom keyboard handling.
Events
- Events
The event model - onReady, before-event and after-event pairs, header attributes, and the interaction events of selection, resizing, column drag and the menus.
State Persistence
- State persistence
Save and restore the user's grid state with persistState, read and apply it with getState and restoreState, reset it, share it as a URL-safe string, and keep named saved views.
Globalization and Localization
- Locale provider
Localize every Salmon UI component at once with LocaleProvider and the built-in Traditional Chinese pack, override single strings, nest providers, and add your own locale pack.
- Localization
Translate every grid string with the localeText catalog, format numbers, dates and money per locale, and pick the text direction from the locale.
RTL
- Right-to-left
RTL layout, keyboard and scrolling.
Accessibility
- Accessibility
One ARIA grid tree, the keyboard map, live-region announcements, focus across virtualization and overlays, accessible names, contrast, reduced motion and forced colors.
Adaptive UI
- Adaptive UI
Adaptive layout for narrow containers and touch, vertical card rows, full-screen sheets, and touch selection.
Foreign Key
- Lookup columns
Foreign-key columns that store a key and show, sort, filter, search and group by a looked-up value, from a local table or a cached remote source.
Export and print
Detail Template
- Detail rows
Expandable detail rows with a render prop, async loading, per-row and expand-all control, keyboard support and virtualization.
Hierarchy Grid
- Child grids
Hierarchy grids with child grids joined by a field, any nesting depth, inherited locale and theme, and lazy mounting.
Tree Grid
- Tree Grid
DataGrid tree mode for hierarchical data. Nested or flat self-referential rows, expansion, tree keys, filter and paging modes, checkbox cascade, child summaries, drag and indent, and lazy remote children.
Row Drag and Drop
- Row drag and drop
Reorder rows by pointer or keyboard, drag several rows, drop into another grid or a custom element, with cancelable events and persisted order.
Browse every Data Grid demo on the demos page, or every exported symbol in the API reference.