DayPilot Forums

DayPilot is the best open-source Outlook-like calendar control for ASP.NET.
DayPilot Pro Demo (Calendar control)
» DayPilot Pro live demo (Calendar control)
DayPilot Pro Demo (Scheduler control)
» DayPilot Pro live demo (Scheduler control)
Home » How To » enable/disable ContextMenu

enable/disable ContextMenu

Hi again,

I want to disable the ContextMenu in some resources but not in everyone. Is it possible to enable the ContextMenu only for special resources?

Torben K. - 2/6/2008 12:19:57 PM
Yes, it's possible using BeforeEventRender event handler. Detect the resource using e.ColumnId and set e.EventRightClickEnabled to false for the resources where you want to turn the context menu off.
Dan Letecky - 2/6/2008 1:30:08 PM
Thanks
Torben K. - 2/6/2008 1:47:10 PM

Sorry butI've another problem.Your solutionworks with the "normal" Context Menu.But how can i disable the ContextMenufor aslelected a timerange?

Thank you

Torben K. - 2/6/2008 2:19:33 PM
Unfortunately, that's not possible at the moment.
Dan Letecky - 2/11/2008 9:53:37 PM
Post reply