DataGrid / Miscellaneous / Context Menu

Blazor DataGrid Example - Context Menu

Loading Syncfusion Blazor Server Demos…

1 of 7 pages (75 items)

This sample demonstrates the DataGrid context menu feature that appears on right-click actions.

Right-click anywhere on the Blazor DataGrid to display the context menu with available operations. Configure the context menu items by setting the ContextMenuItems property to predefined options. Menu items are displayed based on their target context.

The available default context menu items are:

  • Edit - Edit the current record.
  • Delete - Delete the current record.
  • Save - Save the edited record.
  • Cancel - Cancel the editing state.
  • Copy - Copy the selected records to clipboard.
  • PdfExport - Export the DataGrid to PDF format.
  • ExcelExport - Export the DataGrid to Excel format.
  • CsvExport - Export the DataGrid to CSV format.
  • SortAscending - Sort the current column in ascending order.
  • SortDescending - Sort the current column in descending order.
  • FirstPage - Navigate to the first page.
  • PrevPage - Navigate to the previous page.
  • LastPage - Navigate to the last page.
  • NextPage - Navigate to the next page.

In this demo, the context menu is enabled with the default set of items.

For more detailed information about the context menu feature, refer to the context menu documentation.

Transform your Blazor web apps today with Syncfusion® Blazor components
145+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE