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

Disable context menu item & Dynamic context menu

Asked by rajesh.bsw@gmail.com
4 years ago.

Hi,
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:
http://jsfiddle.net/jLLck2sz/

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

#1

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

http://jsfiddle.net/jLLck2sz/2/

#2

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

http://api.daypilot.org/daypilot-calendar-contextmenuselection/

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

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