When I go on to the editor box for an event, and press the save button, if there is a colliding event, it runs onEventCollision.
That works fine.
But when I run the following code myself, I would expect onEventCollision to run, as it is effectively the same as editing an event, but the function doesn’t run.
.checkCollision checks whether event collides with other events of the calendar. If it does - the method fires ‘onEventCollision’ event for each collision. Does it works differently in your application?
Actually it must trigger the related event, when collision occurs
//update event
var ev = scheduler.getEvent(eventID);
ev.approved = approve.toString();
//run collision check
var result = scheduler.checkCollision(ev);
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan