Premium support for our pure JavaScript UI components


Post by kevin.snps »

Hi there.
Is there a way to configure break times(if possible, not only one) for calendar in schedulerPro?


Post by alex.l »

If you are talking about non working time intervals, then here is the guide https://bryntum.com/docs/gantt/guide/Gantt/basics/calendars#availability-intervals

If not, we need more details what did you mean in "break times".

All the best,
Alex


Post by kevin.snps »

Thank you alex, this was what I was looking for!


Post by kevin.snps »

Hello Bryntum ,
We have implemented according to what you have told us, and made the these changes to the Calendar.
But the breaks(Intervals) do not appear to be greyed out. Are we doing some thing wrong?
Our requirement is to have a maximum of 3 breaks (Intervals) in a day, and specify a working day also.

In the below image, even though the interval is from 13:15 to 13:45 (isWorking is false), I can schedule events at this time in the scheduler pro.
Is there a reason for this to happen?

image (3).png
image (3).png (65.7 KiB) Viewed 419 times

Below is how we are configuring the resource and the calendar.

image (2).png
image (2).png (71.4 KiB) Viewed 419 times
image (4).png
image (4).png (79.61 KiB) Viewed 419 times

Thank You.


Post by alex.l »

Will you see grayed intervals if you zoom in?
Did you apply this calendar to the project itself or only to resources?

All the best,
Alex


Post by kevin.snps »

We didn't see grayed intervals even we zoom in.
We are applying this calendar to the resource, and added

resourceNonWorkingTime : true,

to he feature of the schedulerPro.

We thought that having multiple intervals with working and non-working time for the same time is conflicting, so we have made the 'isWorking' for all the intervals to be false.
We now get the error as the attached file.

So we now have two question.
1 ) We are not sure why this is error is coming up.

2) Can we have intervals with isWorking = true and isWorking = false together, by using both in the same intervals array , would that be an issue while displaying the breaking times(Intervals with isWorking = false).

Attachments
image (5).png
image (5).png (130.03 KiB) Viewed 395 times

Post by marcio »

Hey,

Could you please share a sample of your data to reproduce the error?? If possible, the configuration object also.

Regarding your second question, there is no issue with having intervals with isWorking = false and isWorking = true in the same array.

Best regards,
Márcio


Post by kevin.snps »

I have attached the sample data. Please have a look at it.

Regarding your second question, there is no issue with having intervals with isWorking = false and isWorking = true in the same array.

thank you for informing us. We will also try implementing using this.

Attachments
data (1).json
(15.12 KiB) Downloaded 33 times

Post by marcio »

So, a few points to make regarding the JSON file that you shared:

That was everything that I found related to that sample data that you shared, and I believe that will fix the error that you shared here. Please let me know if you have other questions.

Best regards,
Márcio


Post by kevin.snps »

Hi Marcio, thank you for the reply.
We weren't getting the error, when we have configured the calendar like this, and the schedulerPro was working fine.

image (2).png
image (2).png (71.4 KiB) Viewed 336 times

And about the assignments data, the resource looks like a JSON but is stringified, and it has been working fine, so we are not considering this a problem.

We are thinking of format the assignments, dependencies, events and resources data following the right structure, with a rows property. But it requires a lot of fixes going on, so we want to understand the error we got.

Can you tell us what the error meant, or why we got that?

Thank you for your support.


Post Reply