I have 2 scheduler.
$scope.dp = new DayPilot.Scheduler("dpchart");
$scope.dpc = new DayPilot.Scheduler("dpcalendar");
for chart & Calendar with external drag and drop support.
When I'm doing drag & drop from chart to calendar I'm calling
"$scope.dpc.onEventMoved = function (args) {}" for calendar.
when I drag and drop one instance from chart to calendar,
I need to do validation on "args" data (ex: args.e.start().value ) and if validation fails I need to delete the dragged instance from the calendar using "events.remove" method.
My problem is I dragged & dropped an instance from chart to calendar to "11:00 AM" slot and (args.e.start().value) had value of "11:00 AM" and I deleted the slot from the calendar, and I dragged & dropped the same instance again to "06:00 PM" and (args.e.start().value) had value of "11:00 AM" instead of "06:00 PM".
How to reset the "args" data in "onEventMoved" method each time when i do drag and drop.
Thanks