Context menu

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:

Related API:


Context menu on header cells

Set the option contextMenu.head to true.

Header cells can be differentiated based on ui.dataIndx, ui.$th, ui.filterRow argument of items callback.


Dynamic Context menu on cells

Menu items can be decided in run time by using callback variant of contextMenu.items.

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.