View as Markdown

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.

    6 demos

  • Column chooser

    A searchable dialog that shows and hides columns, opened from the toolbar, the column menu or the API.

    2 demos

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.

    1 demo

  • 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.

    1 demo

Stacked Headers

  • Stacked headers

    Group columns under multi-level headers with nested column definitions; operations act on the leaf columns.

    1 demo

Row and Column Spanning

  • Row and column spans

    Span cells across columns and rows with column colSpan and rowSpan, or merge equal adjacent values grid-wide with mergeCells.

    1 demo

Column Resize, Reorder, Chooser, Menu

  • Column menu

    A per-header menu with built-in sort, filter, group, auto-size, pin and chooser items, custom items and submenus, per-column items and keyboard access.

    1 demo

Context Menu

  • Context menu

    A right-click and Shift+F10 menu for headers, cells, rows, group captions and the pager, with built-in and custom items and per-target control.

    1 demo

Toolbar

  • Toolbar

    Built-in and custom toolbar items, alignment, search, overflow, keyboard navigation and a replaceable toolbar.

    1 demo

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.

    3 demos

Virtual Scroll

  • Virtualization

    Row and column virtualization, scaled scrolling for millions of rows, measured row heights and the server-rendered initial range.

    6 demos

Performance

  • Performance

    What the grid re-renders, how to observe it in development, and the budgets that gate every release.

    1 demo

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.

    5 demos

Selection

  • Selection

    Row, cell and column selection with pointer, keyboard and methods; id-based, persistent and virtualization-safe.

    3 demos

Sorting

  • Sorting

    Header sorting, multi-column sort, initial sort, custom comparators and sort methods.

    1 demo

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.

    5 demos

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.

    1 demo

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.

    3 demos

  • 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.

    1 demo

Grouping

  • Grouping

    Group rows by one or more columns from the drop area, the keyboard or methods; virtualized, with preserved expansion.

    2 demos

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.

    5 demos

Validation

  • Validation

    Column validation rules, custom and async validators, row-level rules, batch validation, messages and their localization, and the inline error wiring.

    1 demo

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, onBeforeCopy and onBeforePaste, and the fallbacks when the browser blocks clipboard access.

    1 demo

Aggregates

  • Aggregates

    Footer, group footer and group caption summaries with built-in and custom aggregate types.

    2 demos

Lazy Load Grouping

  • Lazy load grouping

    Server-side grouping that loads group captions first and children on demand.

    1 demo

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.

    1 demo

Data Binding

  • Data sources

    Local arrays, the Salmon UI JSON protocol, offline, live and application-controlled data sources.

    9 demos

Methods and Commands

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.

    2 demos

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.

    3 demos

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.

    1 demo

  • Localization

    Translate every grid string with the localeText catalog, format numbers, dates and money per locale, and pick the text direction from the locale.

    4 demos

RTL

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.

    1 demo

Adaptive UI

  • Adaptive UI

    Adaptive layout for narrow containers and touch, vertical card rows, full-screen sheets, and touch selection.

    1 demo

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.

    2 demos

Export and print

  • Export

    Excel, PDF and CSV export of the grid view with hooks, events, several grids per workbook, server export and on-demand writers.

    1 demo

  • Print

    Print every row of the grid view without virtualization, all pages or the current page, with print events and a print stylesheet.

    1 demo

Detail Template

  • Detail rows

    Expandable detail rows with a render prop, async loading, per-row and expand-all control, keyboard support and virtualization.

    1 demo

Hierarchy Grid

  • Child grids

    Hierarchy grids with child grids joined by a field, any nesting depth, inherited locale and theme, and lazy mounting.

    2 demos

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.

    14 demos

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.

    2 demos

Browse every Data Grid demo on the demos page, or every exported symbol in the API reference.