Our pure JavaScript Scheduler component


Post by peaguilar »

In the non-working-time demo there are events that are able to show over the non working time calendar. Is there a certain setting that allows this to happen?
This is the desired look

Screen Shot 2023-01-26 at 9.51.20 AM.png
Screen Shot 2023-01-26 at 9.51.20 AM.png (124.9 KiB) Viewed 350 times

However in our implementation the events show like this if they end up on the non working time calendar.

Screen Shot 2023-01-26 at 9.51.12 AM.png
Screen Shot 2023-01-26 at 9.51.12 AM.png (45.68 KiB) Viewed 350 times

Post by peaguilar »

My implementation is the same as above as far as I can see. The events show perfectly fine when in a working time, but if they happen to be assigned to non working time due to emergency or what ever it shows like the second image.


Post by marcio »

Hey peaguilar,

There is no special configuration, that's the default behavior, when some event ends in non-working time, the Scheduler "extends" the event to the next working day available and continues to count the duration of the event.

Also, how do you assign the event to the non-working time?

Could you please share a sample with your configuration and some fake data for us to check what's causing that behavior on your side?

Best regards,
Márcio


Post by peaguilar »

Ah okay I see. I changed this event to start in working time, and go over, and it is working like it should

Screen Shot 2023-01-26 at 12.32.45 PM.png
Screen Shot 2023-01-26 at 12.32.45 PM.png (139.87 KiB) Viewed 339 times

But what about when it doesnt start in non working time. Is there anything I can do to make it still show properly? Because when it doesnt start in non working time, then scheduler shows it like this.

Screen Shot 2023-01-26 at 9.51.12 AM.png
Screen Shot 2023-01-26 at 9.51.12 AM.png (45.68 KiB) Viewed 339 times

Post by marcio »

Hey peaguilar,

How are you able to add the events in the non-working time zone? I'm trying to add that in our demo https://bryntum.com/products/schedulerpro/examples/non-working-time/ but (as expected) it doesn't allow me to add it. Are you loading external data with the dates like that??

Best regards,
Márcio


Post by peaguilar »

With our system you can update the times of the events from other pages. So the api allows any times to be added, and do not take the non working time in to account. So when we get the api data it will render the event in non working time, which is why we are able to add to non working time like this.


Post by alex.l »

Hi peaguilar,

Am I right you want tasks ignore non-working time periods? If task starts and ends in non-working period and cannot be re-scheduled because of constraints, duration will be 0, so that's why it looks like a milestone.
To ignore non-working time, you can set own calendar for that task which have that period as working time
Please see docs:
https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/model/EventModel#field-calendar
https://bryntum.com/products/schedulerpro/docs/guide/SchedulerPro/basics/calendars

All the best,
Alex


Post by peaguilar »

We only want it to ignore the non working time if this is set from the other screen. The reason is for an emergency etc. We want scheduler to still not allow drag and drop in non working time, but if an event happens to be scheduled to someones non working time, we would like it to at least show the task with out having the style different like this. So you are saying dynamically add a calendar to create working time for that event?


Post by marcio »

Yes, you can specify calendars for a specific event, but I believe that this feature will help you with your case

https://bryntum.com/products/schedulerpro/docs/api/Scheduler/feature/EventNonWorkingTime

Best regards,
Márcio


Post by peaguilar »

Thank you


Post Reply