Home Unanswered Active Tags New Question

Disable TimeRangeSelectedHandling when clicking on contextmenu

Hi Dan,

Is it possible that once we have clicked on a contextmenu which has a javascript action to disable the TimeRangeSelectedHandling?

I know we can use "DayPilot.Web.Ui.Enums.TimeRangeSelectedHandling.Disabled;".

Thanks
Asked by Tom 4 years ago.
Replies
You can try calling this on the client side:

dpc1.timeRangeSelectedHandling = 'Disabled'

But remember that it will be reset after the first PostBack (either full or partial).

Another option is to put everything into UpdatePanel, handle the menu click using PostBack and change TimeRangeSelectedHandling on the server side.
Comment posted by Dan Letecky 4 years ago.
cheers dan,

dcp1.timeRangeSelectedHandling = 'disabled';

worked a treat.
Comment posted by Tom 4 years ago.
New Reply
This reply is
Your name (optional):

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