search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

DayPilotScheduler variable no longer available

Asked by Simone
7 years ago.

Hi Dan,

I recently updated the MVC pro version to 8.3 SP1 wich comes with javascript file version 2537.

I used to call DayPilotScheduler.dragStart function to make draggable my items but i found that in this version of js the variable is undefined. Was it deprecated?

thank you.

Answer posted by Dan Letecky [DayPilot]
7 years ago.

Yes, DayPilotScheduler namespace is deprecated as is no longer available. Instead of DayPilotScheduler.dragStart() you can use DayPilot.Scheduler.startDragging(options):

Old syntax:

DayPilotScheduler.dragStart(element, duration, id, text);

New syntax:

DayPilot.Scheduler.startDragging({element: element, duration: duration, id: id, text: text});
Comment posted by Simone
7 years ago.

Perfect!

fast and accurate answer as usual, thank you!

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.