bryntum / support

An issues-only repository for the Bryntum project management component suite which includes powerful Grid, Scheduler, Calendar, Kanban Task Board and Gantt chart components all built in pure JS / CSS / TypeScript
https://www.bryntum.com
54 stars 6 forks source link

allowOverlap doesn't work with "snap" set to true #9947

Open ghulamghousdev opened 2 months ago

ghulamghousdev commented 2 months ago

Forum post

Problem Description: We do not allow drag and create event if the date at the dragging point overlaps with any event. But in case (as shown in below clip), the dragging point does not overlap with the event but at the end of the drag, it overlaps with some other event, we show event edit popup but does not allow to save it as we have config allowOverlap set to false and we do validation. We should check for overlapping before showing the event edit if the allowOverlap is false. The behaviour should be same as when snap set to false.

You can try it here https://www.bryntum.com/products/scheduler/examples/bigdataset-tree/

        allowOverlap          : false,
        snap                  : true,

This allows you to create drag-create overlap events even when allowOverlap is set to false.

https://github.com/user-attachments/assets/dfd01b69-a653-4fe4-ac4b-65f2984fa85e