Premium support for our pure JavaScript UI components


Post 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.

Attachments
NonWorkingTimeSetEvent.zip
(2.99 MiB) Downloaded 91 times
Screenshot 2021-09-13 at 11.14.45 AM.png
Screenshot 2021-09-13 at 11.14.45 AM.png (313.73 KiB) Viewed 851 times

Post by saki »

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


Post by gorakh.nath »

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

Attachments
Non-WorkingTimeSample.zip
(2.99 MiB) Downloaded 104 times

Post 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:


Post 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?


Post 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.


Post 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?


Post 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/

All the best,
Alex


Post Reply