Blazor Tree Grid Example - Context Menu

Tree Grid / Miscellaneous / Context Menu
This sample shows the context menu feature in the Tree Grid component. To access the context menu, right-click anywhere on the Tree Grid.

Loading Syncfusion Blazor Server Demos…

1 of 2 pages (3 items)

To configure the items in context menu, you should define either default or custom item in the ContextMenuItems property. Each context menu item will be shown based on its target. The default context menu items are,

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

While using the Tree Grid in a touch environment, touch and hold the Tree Grid row cell to show the context menu.

More information about context menu can be found in this documentation section.

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