Our pure JavaScript Scheduler component


Post by gotta go fast »

Hey Bryntum,

I have a situation, where I have events that contain multiple datasources.
When I start to drag one, the rest is also picked up and dragged alongside the one I just clicked.

Is it possible to disable this mechanism of auto-moving all instances of the same event?

If yes, can I make move only one instance of the event, when moving to another datasource, but be able to move them all when changing day?

dragging-same-event.png
dragging-same-event.png (95.44 KiB) Viewed 97 times

Kind regards,


Post by marcio »

Hey gotta go fast,

Thanks for reaching out.

Could you provide more context on setting up the events/data sources? If you could provide a demo with some data samples for us to debug, that also would be helpful for us to assist you.

We need to understand how you set up the scheduler and dragging to help you with this.

Best regards,
Márcio


Post by gotta go fast »

Hi Marcio,

I found the issue, we can close the topic.
Someone wanted to fix problem with event not being selected on dragStart. This issue will have to be fixed different way.

beforeEventDrag: ({ eventRecords }: { eventRecords: EventModel[] }) => {
        // To make the event style as selected event
        // scheduler.current?.instance.selectEvents(eventRecords); <- this line was a cause
      },

Marcio do you know maybe, why events do not get selected state when dragging?


Post by marcio »

Hey gotta go fast,

We will need a sample to check how you're setting up the drag feature.

If you check the demo in our documentation here https://bryntum.com/products/scheduler/docs/api/Scheduler/feature/EventDrag if you drag the event it remains selected.

Attachments
19.03.2024_12.31.46_REC.mp4
(637.9 KiB) Downloaded 6 times

Best regards,
Márcio


Post Reply