Our pure JavaScript Scheduler component


Post by jbrazier »

Hi,

I'm trying to set up a scheduler with two separate calendars as I want events and resources to be assigned one calendar that has non-working times in it and for the project (and dependencies as we don't want the lag to take non-working times into account) to use a calendar without non-working times.

When I set the project to the same calendar as the events and resources I can see the non-working time displayed on the grid (shaded area) but if I change the calendar for the project to my other calendar then I can't see the non-working interval as shaded anymore.

I've attached some example code to show what I mean and a video to show the issue.

When the project is set to use the workinghours calendar then you can see the non-working time is shaded, but the dependency lag is wrong and then if I change the project to the full calendar I can't see the non-working time shading but the dependency lag is correctly ignoring the non-working time.

Hope that makes sense,

Jason

Attachments
Intervals.mp4
(17.47 MiB) Downloaded 17 times
nonworkingtime.zip
(126.85 KiB) Downloaded 18 times

Post by jbrazier »

I have also seen the documentation and example for using different calendars on resource rows that seems to be working as I want but I'm not sure what I'm missing - https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/feature/ResourceNonWorkingTime


Post by alex.l »

Hi Jason,

The thing you missed is enable the feature you mentioned in your configs:

  resourceNonWorkingTimeFeature : {
    maxTimeAxisUnit: 'year'
  },

I used max config for https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/feature/ResourceNonWorkingTime#config-maxTimeAxisUnit to have interval visible on big zoom levels. Please adjust it as you need.

All the best,
Alex


Post by jbrazier »

Awesome thanks for that Alex, that has sorted it for us.

Cheers,

Jason


Post Reply