Page 1 of 1

[REACT] Event not showing if assigned in non-working time

Posted: Mon Sep 13, 2021 7:56 am
by gorakh.nath

Hi Team,
If resource's event is assigned under non-working time then it is showing after non-working time ends.
Calenders data is:-

'calendars': [
        {
            'intervals': [
                {
                    'recurrentStartDate': 'at 13:00',
                    'recurrentEndDate': 'at 08:00',
                    'isWorking': true
                }
            ],
            'name': 'Day shift',
            'id': 'day',
            'unspecifiedTimeIsWorking': false
        }
    ]

events Data is:-

{
                "id"         : "r1",
                "resourceId": 1,
                "startDate"  : "2025-12-01T10:00:00",
                "endDate"    : "2025-12-01T12:00:00",
                "name"       : "Meeting",
                "eventColor" : "blue",
                "cls": "",
                "duration": 3,
                "durationUnit": "h",
                "draggable": true,
                "resizable": true
            }

In above example event should come between 10 AM to 12 PM but it is showing after 1PM because it non-working time is 8 AM to 1 PM.
How can I show events in exactly the same time as it coming in the data?.
I attached the sample application for reference.


Re: [REACT] Event not showing if assigned in non-working time

Posted: Mon Sep 13, 2021 10:05 am
by saki

You have a typo in data.json. Change calenders => calendars as the first step of debugging.


Re: [REACT] Event not showing if assigned in non-working time

Posted: Mon Sep 13, 2021 11:15 am
by gorakh.nath

Hi @saki
I modified the json and attached the new sample application, please proceed further.


Re: [REACT] Event not showing if assigned in non-working time

Posted: Mon Sep 13, 2021 2:25 pm
by saki

This is a conflicting requirement: Arcady is not working in the morning but nevertheless, schedule an event for him in his non-working time. This is not possible so the event is automatically rescheduled to the earliest possible availability of Arcady, which is 15:00.

The scheduling logic is explained in details in:


Re: [REACT] Event not showing if assigned in non-working time

Posted: Mon Sep 13, 2021 2:42 pm
by gorakh.nath

@saki, This is the use case actually where we assigning the task to resource in non-working time that will be overtime for resource. Our data is exactly same as it is attached in sample application.
In UI it should show in correct position where the event is assigned for resource.
How can we show the event in non-working time?


Re: [REACT] Event not showing if assigned in non-working time

Posted: Mon Sep 13, 2021 3:21 pm
by saki

We have a feature request for manually scheduled tasks to ignore calendars: https://github.com/bryntum/support/issues/2326

Note: The feature request is for Gantt but it will be implemented on data level so it will also work in Scheduler Pro.


Re: [REACT] Event not showing if assigned in non-working time

Posted: Wed Sep 15, 2021 11:42 pm
by gorakh.nath

@saki Please provide some work around to over ride above logic, this feature request will take some time I need it urgently.
How I can override the logic to display the event where it assigned?


Re: [REACT] Event not showing if assigned in non-working time

Posted: Thu Sep 16, 2021 10:09 am
by alex.l

Hi gorakh.nath,

This is not easy to achieve and unfortunately we cannot give you any workaround now. But you always can sponsor the feature. For more info please contact our Sales: https://www.bryntum.com/services/