Interaction guide

Context Menu data grid documentation

Open the full menu from a selection.

What it means

Context menus keep selection-scoped actions one right-click away.

When to use it

Use this when the action depends on the current selection. Keep page-level actions in the toolbar instead of the menu.

Implementation notes

Start with `api.buildContextMenuConfig(...)`. Keep the menu shell props, menu groups, and custom actions close together. Use `type: "submenu"` when a group needs to stay compact without flattening the whole menu. Use Reset to restore the seeded menu state, rows, columns, and status text.

Relevant API

Start with contextMenu.enabled, contextMenu.items, contextMenu.closeOnSelect, contextMenu.renderMenu, contextMenu.onOpen, contextMenu.onClose, contextMenu.onAction, contextMenu.handlers. Open the live API reference for types and defaults.