Using dhtmlxMenu as a ContextMenu with Schedule

I am using the dhtmlxMenu object with the Scheduler and have set it to renderAsContextMenu.

I am able to show the context menu when I right mouse click inside the Scheduler but the menu does not stay visible unless I keep the RMB held down. When I use the Menu object with a dhtmlxGrid object the context menu does stay visible until I click somewhere else on the grid.

Is there a way of making the context menu stay visible? :question:
I have tried changing the mode to ‘web’ and setting the WebModeTimeout but still cannot get it to remain on screen.

Thanks

Martin

Further to my initial query I can get the context menu to remain on screen but only if I move the mouse over the menu. Whereas when using contextmenus withthe grid object the menu remains on screen irrespective of whether the mouse is over it or not.

Stanislav do you have any ideas how I could overcome this problem :question:

Hello,

I’m using the version 2.3 of the library and I’m encountering the same problem as described above. Could someone give me a clue to solve that annoying problem.

Thanks for any help.

Loïc

Hello,

Check out following sample:

[code]

<script src="../../codebase/dhtmlxscheduler.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="../../codebase/dhtmlxscheduler.css" type="text/css" media="screen" title="no title" charset="utf-8">

<link rel="stylesheet" type="text/css" href="../../../dhtmlxMenu/codebase/skins/dhtmlxmenu_dhx_skyblue.css">
<script src="../../../dhtmlXMenu/codebase/dhtmlxcommon.js"></script>
<script src="../../../dhtmlxMenu/codebase/dhtmlxmenu.js"></script>
html, body{ margin:0px; padding:0px; height:100%; overflow:hidden; }
 
 
[/code] Best regards, Ilya

Hello,

Thanks to your answer, I quickly figured out that my problem was due to the body tag CSS (see attach file). The aim of this CSS is mainly to center the page contents in the browser window. I overcame the problem by adapting the coordinates in the “oncontextmenu” event handler. I would really appreciate that you let me know if you have a better solution.

Best regards,

Loïc

body
{
    overflow: auto;
    position: absolute;
    width: 1152px;
    left: 50%;
    margin-left: -576px;
    height: 720px;
    top: 50%;
    margin-top: -360px;
}

Hello, Loïc.

I am sorry, can you explain the problem (if there is any)?

Best regards,
Ilya

Hello,

I have no more problem.
Thank you for your attention.

Best regards,

Loïc