WarUI

Cell Context Menu

GRID-A22-F03P0baselinePlanned

Right-clicking a cell opens a context menu with built-in actions: copy, copy with headers, paste (when editing is enabled), and export of the current selection. This makes common clipboard and export operations available in place, the way users expect from spreadsheets.

Planned. This page shows the specification from issue #202. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

A customer grid of 500 rows with the context menu enabled and range selection on.

Expected behavior

Right-clicking a cell selects it if it was not already selected and opens the menu at the pointer. The copy actions put text on the clipboard. When the menu is disabled, the browser's native menu appears instead.

Planned API surface

gridOptions.enableContextMenugridOptions.suppressBrowserContextMenuapi.openContextMenu(rowIndex,colId,coords)onContextMenuOpenonContextMenuItemSelectbuiltInContextMenuItemIds

Acceptance criteria

  • The menu opens at the pointer position and is clamped to stay inside the viewport. (pending)
  • Right-clicking outside the current selection moves the selection to the clicked cell. (pending)
  • Right-clicking inside an existing range keeps the range selected. (pending)
  • 'Copy with Headers' produces tab-separated text with a header row. (pending)
  • 'Paste' is shown only when the target cell is editable. (pending)
  • Ctrl+right-click shows the native menu when that option is enabled. (pending)