Hi Anais,
Greetings from Syncfusion support.
We have validated your reported “Moving an event on itself with IsSlotAvailable” query at our end. We have achieved your requirement with the help of the below code. We have prepared a sample for your reference and it can be available below.
[app.component.html]
onDragStop(args: DragEventArgs): void {
if (args.target.classList.contains('e-work-cells')) {
let groupIndex: number = +(args.target as any).getAttribute('data-group-index');
if (!this.scheduleObj.isSlotAvailable(args.data.StartTime as Date, args.data.EndTime as Date, groupIndex as number)) {
args.cancel = true;
console.log('Slot is unavailable');
}
}
}
Kindly try the above sample and get back to us if you would require further assistance.
Regards,
Ravikumar Venkatesan