search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Disable context menu item & Dynamic context menu

Asked by
9 years ago.

I'm evaluating Daypilot event calendar- javascript -Version: 1572.
I'm trying to have event specific context menu items and setting the custom context menu items using the 'onBeforeEventRender' event. But the context menus doesn't turn up.
Could you please help me on below requiremnts:
1. How to have the event specific context menu items and how can i disable (don't want to hide) some of the context menu items based the event properties?
2. How to set the custom context menu for the 'Cell' context menu and is it possible to disable some of the context menu items?

Please find the fiddle below:

Answer posted by Dan Letecky [DayPilot]
9 years ago.


Since build 1591 you can use "disabled" attribute of a menu item. Please see the updated jsfiddle:


There is no context menu for grid cells, only for time range selection. It pops up on cell right click, anyway:

At this moment it's not possible to customize the menu using onBeforeCellRender.

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.