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 » Disable TimeRangeSelectedHandling when clicking on contextmenu

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
Tom - 5/6/2008 5:16:05 PM
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.
Dan Letecky - 5/6/2008 6:04:42 PM
cheers dan,

dcp1.timeRangeSelectedHandling = 'disabled';

worked a treat.
Tom - 5/7/2008 10:31:12 AM
Post reply