Hi Muzaffer,
Thanks for the update.
We checked your requirement “avoid the events overlapping ” at our end and the best solution is to achieve this requirement is that “isSlotAvailable”. We checked your shared code what you have tried in your project and we suggest you please pass the entire event object in the event change action instead of passing the start time, end time, and group index. Please refer to the below code snippet.
actionBegin: function(args) {
if (args.requestType === "toolbarItemRendering") {
var userIconItem = {
align: "Left",
type: "Input",
template: multiselectObj
};
args.items.push(userIconItem);
}
if (
args.requestType === "eventCreate" ||
args.requestType === "eventChange"
) {
var data = void 0;
if (args.requestType === "eventCreate") {
data = args.data[0];
} else if (args.requestType === "eventChange") {
data = args.data;
}
if (!scheduleObj.isSlotAvailable(data)) {
args.cancel = true;
}
}
}
For more reference, we already have done the same scenario in our online sample demo. Kindly refer to the below sample for more reference.
Kindly try the above solution and get back to us if you need any further assistance.
Regards,
Vengatesh