Home Unanswered Active Tags New Question

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?

Asked by Torben K. 4 years ago.
Replies
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.
Comment posted by Dan Letecky 4 years ago.
Thanks
Comment posted by Torben K. 4 years ago.

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

Thank you

Comment posted by Torben K. 4 years ago.
Unfortunately, that's not possible at the moment.
Comment posted by Dan Letecky 4 years ago.
New Reply
This reply is
Your name (optional):

DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java