Our state of the art Gantt chart


Post by mstawicki »

Hello!

I'm working on a grid view that's containing all of our company employees and their respective calendars. Calendars can be choosen from two default calendars we prepared, but if there's need to add exception (absence) for a particular person, we should be able to create personal calendar that should inherit intervals from one of default calendars. Below you can see part of code I use to create child-parent relationship.

    const parentCalendar = this.project.calendarManagerStore.findRecord('name', '24/7') as CalendarModel;
    const childCalendar = parentCalendar.appendChild(new CalendarModel({
      name: 'ChildCalendar',
    }));

After logging those calendars in console everything looks correct in parent calendar, however child calendar doesn't have parent id.
Parent calendar:

{"id":1,"expanded":true,"version":2,"name":"24/7","unspecifiedTimeIsWorking":true,"intervals":[],"children":[{"id":8456,"expanded":true,"version":2,"name":"ChildCalendar","unspecifiedTimeIsWorking":true,"intervals":[]},{"id":"_generatedCalendarModel_3202514c-f4d2-47ea-9109-b1087f8e378d","expanded":true,"version":2,"name":"ChildCalendar","unspecifiedTimeIsWorking":true,"intervals":[]}]}

Child calendar:

{"id":"_generatedCalendarModel_3202514c-f4d2-47ea-9109-b1087f8e378d","expanded":true,"version":2,"name":"ChildCalendar","unspecifiedTimeIsWorking":true,"intervals":[]}

On the backend side, received message doesn't contain any information about child-parent relation at all:

2025-11-13 10:33:23,064 INFO  [eu.mew.res.bry.res.DataRest] (executor-thread-7) Sync {"type":"sync","requestId":17630264030392,"revision":16959,"calendars":{"added":[{"expanded":true,"version":2,"name":"ChildCalendar","unspecifiedTimeIsWorking":true,"intervals":[],"$PhantomId":"_generatedCalendarModel_3202514c-f4d2-47ea-9109-b1087f8e378d"}]}}
2025-11-13 10:33:23,071 TRACE [eu.mew.res.bry.dat.DataProcessing] (executor-thread-7) Received sync update data {"type":"sync","requestId":17630264030392,"revision":16959,"calendars":{"added":[{"expanded":true,"version":2,"name":"ChildCalendar","unspecifiedTimeIsWorking":true,"intervals":[],"$PhantomId":"_generatedCalendarModel_3202514c-f4d2-47ea-9109-b1087f8e378d"}]}}

Also, if I'll create and assign parentId field by editing child calendar entry in database it will reflect correctly in frontend.

Could you please help us understand how can we make it work?
Cheers!


Post by alex.l »

Hi,

Sorry for long reply!
I was able to reproduce this and confirmed a bug. Ticket https://github.com/bryntum/support/issues/12242
You can subscribe on ticket updates to be notified when it's done.

All the best,
Alex Lazarev

How to ask for help? Please read our Support Policy


Post Reply