This sample demonstrates the usage of context menu in Tree Grid component. Right click anywhere on the Grid to view context menu.
Tree Grid has an option to show the custom context menu when right
click on it. To configure the custom items in context menu, you should
define custom item in contextMenuItems
. In this demo,
Custom Context Menu feature has enabled by defining the custom context
menu Expand the Row
and
Collapse the Row
for the parent nodes in{" "}
contextMenuItems
property.
Injecting Module:
Tree Grid features are segregated into individual feature-wise
modules. To use context menu feature, we need to inject{" "}
ContextMenu
module into the services
.