SMART datagrid v.1 > Classes > GridBase
It will be fired just before displaying the popup menu.
If explicitly return false within this event handler, it will not display the menu. Just before displaying Context menu, it will call onContextMenuPopup event. And, if click the menu item in which has not specified callback, onPopupMenuClicked event will be fired.
grid.onPopupMenuPopup = function (grid, target, menu) {
// If target is CellIndex
if (target.rowIndex % 2 == 1) return false;
};