dhtmlx scheduler and dhtmlx menu issue

Hi there

I am new to dealing with dhtmlx controls, I am using dhtmlx scheduler and dhtmlx menu I have an issue when using these controls.

The issue is how can I display context menu only on time slot whether it’s empty or not (that have an event) without showing context menu on scheduler header and navline as you see the next images.

thanks in advance.

if use onContextMenu as an entry point for showing a context menu, you can see it provides two arguments

Here is how it is used in sample from our site - screencast.com/t/lxkQ659t
docs.dhtmlx.com/scheduler/sample … xMenu.html

So you can simply inspect an event target and determine whether you want to show the menu or not