Our pure JavaScript Scheduler component


Post by mikemcs »

I understand Stack, Pack, and Overlap T/F. Is there currently a way to have the events act more like flex?

What I mean by this is if I had an event to start on 3/27/23 through 3/30/23 and another event to start from 3/30/23 through 4/3/23.

If I dragged another event between these two mentioned events, the latter would shift out (right) and make room for the one currently being dragged in.

It would then need to shift all others events to the right to make sure there is no overlap.


Post by marcio »

Hey mikemcs,

Just to be sure that we get correct, using the screenshot from our demo https://bryntum.com/products/schedulerpro/examples-scheduler/layouts/

Your suggestion would be that "Appointment #2" should be below "Appointment #1" because the start date from #2 is after the start date of #1?

Attachments
Screenshot 2023-03-28 at 16.23.04.png
Screenshot 2023-03-28 at 16.23.04.png (18.53 KiB) Viewed 206 times

Best regards,
Márcio


Post by mikemcs »

Actually, what I am looking for is that when Appointment #1 was dragged onto the schedule that Appointment #2 would slide over and make room for Appointment#1 which would mean that allowoverlap would be set to false.


Post by alex.l »

Sorry, it's still not clear to me what behaviour are you expecting. SchedulerPro does support custom layout function https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/view/mixin/SchedulerProEventRendering#config-eventLayout but not the Scheduler, unfortunately.
If you think the behaviour you described is a bug, please provide steps to reproduce, actual result and expected result and we'll check that.

All the best,
Alex


Post by mikemcs »

I am looking to see if there is a way to have the Events reschedule themselves if another event gets dragged onto the schedule. I am using SchedulePro

Sample.jpg
Sample.jpg (75.79 KiB) Viewed 190 times

Post by tasnim »

Yes. We already have an example of that
http://bryntum.com/products/schedulerpro/examples-scheduler/dragfromgrid/

schedule.autoRescheduleTasks = true;

Please check the video attached

Attachments
Recording 2023-03-29 194648.mp4
(3.08 MiB) Downloaded 29 times

Post Reply