Our powerful JS Calendar component


Post by gabimaria »

Hi!

I want to implement a condition on the drag and drop event. When I move an event, the EditEvent window opens so I can save the changes made on drag and drop.

How can I do this?


Post by mats »


Post by gabimaria »

There is a way to disable drag and drop?


Post by gabimaria »

I want to open the editor on the 'dragmoveend' event.

But I can't find this editEvent method that you suggested.

Attachments
Calendar.png
Calendar.png (24.25 KiB) Viewed 1798 times

Post by mats »

There is a way to disable drag and drop?

Sure just set the Drag feature to be disabled.
Please see docs: https://bryntum.com/docs/calendar/#Calendar/feature/CalendarDrag

But I can't find this editEvent method that you suggested.

You are calling the method on the calendar, you should call it on the feature.

calendar.features.eventEdit.editEvent(...)

Post by gabimaria »

I've tryed to disable the property, however it didn't work.

Calendar.png
Calendar.png (30.05 KiB) Viewed 1795 times

Post by alex.l »

Hi gabimaria,

To disable drag n drop, please check this feature: https://bryntum.com/docs/calendar/#Scheduler/feature/EventDrag

features: {
    eventDrag: false
 }

All the best,
Alex


Post by gabimaria »

It worked!

Thank you!


Post by ducminh1511 »

I did the same, but it doesn't work

Attachments
drag2.png
drag2.png (12.45 KiB) Viewed 1641 times
drag1.png
drag1.png (25.26 KiB) Viewed 1641 times

Post by pmiklashevich »

Hello @ducminh1511
Please start a new thread. Submit a runnable testcase, describe your problem and steps to reproduce. How to ask for help is described here: viewtopic.php?f=35&t=772
Thanks!

Pavlo Miklashevych
Sr. Frontend Developer


Post Reply