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

How to identify the new scheduler that the event was moved to?

Asked by Aliaa
5 years ago.

Hi,

If I have multiple schedulers in one page, is there a way I can identify which of these schedulers a moved event was dropped into? Currently, I can just identify the new start date, new end date and new resource. But I need to identify the scheduler.

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

You can identify it in onEventMove event handler - "this" object will point to the target Scheduler. This will work even if you reuse the same event handler function for all Scheduler instances.

dp.onEventMove = function(args) {
  var targetScheduler = this;  // DayPilot.Scheduler class
  // ...
};
This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.