Check documentation for the latest version of dhtmlxSuite onBeforeContextMenu DHTMLX Docs

onBeforeContextMenu

fires immediately before showing a context menu

void onBeforeContextMenu(string|number id,number ind,object obj);
idstring|numberthe id of the clicked row
indnumberthe index of the cell column
objobjecta grid object

Available only in PRO Edition

Example

grid.attachEvent("onBeforeContextMenu", function(id,ind,obj){
    //your code here
});

Back to top