Page 1 of 1

Flex Layout view

Posted: Tue Mar 28, 2023 3:48 am
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.


Re: Flex Layout view

Posted: Tue Mar 28, 2023 9:25 pm
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?


Re: Flex Layout view

Posted: Tue Mar 28, 2023 10:00 pm
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.


Re: Flex Layout view

Posted: Wed Mar 29, 2023 6:45 am
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.


Re: Flex Layout view

Posted: Wed Mar 29, 2023 2:41 pm
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 287 times

Re: Flex Layout view

Posted: Wed Mar 29, 2023 3:47 pm
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