I have a problem with the newest version of DayPilot Pro for ASP.NET MVC.
Calendar TimeRangeSelectedHandling doesn't work, I get error in Chrome's console:
Uncaught TypeError: Cannot read property 'args' of null at HTMLDocument.e.gMouseUp daypilot-all.min.js:18
How to fix this?
My calendar code which worked with the version from November 2016
@Html.DayPilotCalendar("dp_day", new DayPilotCalendarConfig
{
BackendUrl = Url.Action("DayPlan", "Calendar"),
ViewType = DayPilot.Web.Mvc.Enums.Calendar.ViewType.Day,
ColumnMarginRight = 100,
TimeFormat = DayPilot.Web.Mvc.Enums.TimeFormat.Clock24Hours,
CellDuration = 15,
TimeHeaderCellDuration = 60,
HourWidth = 60,
BusinessBeginsHour = 7,
BusinessEndsHour = 24,
HideFreeCells = true,
ContextMenu = "me",
EventBubble = "bubble",
TapAndHoldTimeout = 1000,
EventTapAndHoldHandling = DayPilot.Web.Mvc.Enums.Calendar.EventTapAndHoldHandlingEnum.ContextMenu,
TimeRangeSelectedHandling = DayPilot.Web.Mvc.Events.Calendar.TimeRangeSelectedHandlingType.JavaScript,
TimeRangeSelectedJavaScript = "create(start, end)"
})