Our pure JavaScript Scheduler component


Post by miltonarcos »

I have two events that need to always be back to back. If one is dragged then I want the other to move along with it. What's the best way to accomplish that?

Thanks,

Milton


Post by Maxim Gorkovsky »

Hello.
I suppose easiest way would be to enable multiEventSelect and call selectEvent on scheduler passing 2nd event there

scheduler.selectEvent(anotherEvent, true) // true to keep selection

This way event dragdrop feature would naturally move 2nd event along first one.

You can try this behavior selecting two events (holding Ctrl key) and dragging them in this demo: https://www.bryntum.com/examples/scheduler/eventstyles/


Post Reply