Context menu is opened by right click on desktops and long tap on touch devices.
It can be activated on all grid cells, grid number cells and all header ( filter cells, title cells and grouped columns ) cells.
Items in context menu can have sub items and so on upto any number of levels.
It is added to grid by:
contextMenu.itemsto build static or dynamic items.
item.actioncallback implementation provides custom action upon click on the context menu item.
Set the option
Header cells can be differentiated based on
ui.filterRow argument of items callback.
Menu items can be decided in run time by using callback variant of
ui argument of the callback provides coordinates and type of body or head cell upon which the menu is activated, based on which different context items can be built or items can be skipped altogether
by returning empty array.