Hello,
I am using DayPilot Scheduler MVC version 2019.1.5964 and I get an error when I'm trying to move multiple events while the EventMoveHandling of the Scheduler control is set to Notify:
daypilot-all.min.js:23 Uncaught TypeError: Cannot read property 'id' of undefined
at daypilot-all.min.js:23
at Array.forEach (<anonymous>)
at Array.a.each (daypilot-all.min.js:8)
at DayPilot.Scheduler.db (daypilot-all.min.js:23)
at DayPilot.Scheduler.eventMoveNotify (daypilot-all.min.js:23)
at d (daypilot-all.min.js:24)
at DayPilot.Scheduler.bb (daypilot-all.min.js:24)
at HTMLDocument.n.gMouseUp (daypilot-all.min.js:31)
I have debugged the (unminified) javascript daypilot-all.min.js and found this:
var i = e.event.part.dayIndex + w.rowoffset;
t.newResource = c.rowlist[i].id;
In the code above, e.event.part.dayIndex is undefined (specifically the 'part' property is not set). So variable 'i' is set tot NaN. This causes c.rowlist[i] to be undefined.
Am I doing something wrong?
Kind regards,