Parent task Start/End/Duration problem on load

Discuss issues related to v5.x
Post Reply
User avatar
bence.nagy
Posts: 107
Joined: Mon Jun 29, 2015 9:38 am

Parent task Start/End/Duration problem on load

Post by bence.nagy » Wed Aug 07, 2019 2:50 pm

Dear Bryntum Team,

My setup:
Ext JS 6.5.2.463
Gantt Pro 5.1.8

I have the following situation: I have a parent task with two children.
When I load the data the parent Start/End/Duration is not calculated correctly.
After I move one of the child tasks the parent is corrected.
Please check the attached screenshot (Parent problem.png).

Thank you very much!
Attachments
Parent problem.png
Parent problem.png (19.28 KiB) Viewed 775 times

User avatar
arcady
Core Developer
Core Developer
Posts: 2303
Joined: Wed Mar 20, 2013 6:57 am

Re: Parent task Start/End/Duration problem on load

Post by arcady » Wed Aug 07, 2019 3:06 pm

Do you have Gnt.data.TaskStore#autoNormalizeNodes config set to false? If yes then change it to true ..if not please provide a runnable test case.

User avatar
bence.nagy
Posts: 107
Joined: Mon Jun 29, 2015 9:38 am

Re: Parent task Start/End/Duration problem on load

Post by bence.nagy » Mon Aug 12, 2019 8:37 am

Hello,

Thank you for your reply. The "autoNormalizeNodes" is ot touched, the system picks up it's default value.
Attached is a runable test case, which is based your "Export" example. Thanks!
Attachments
export.zip
(45.15 KiB) Downloaded 12 times

User avatar
arcady
Core Developer
Core Developer
Posts: 2303
Joined: Wed Mar 20, 2013 6:57 am

Re: Parent task Start/End/Duration problem on load

Post by arcady » Tue Aug 13, 2019 6:56 am

For the sake of performance the Gantt doesn't recalculate summary tasks start/end dates on data loading.
It does some minimal data normalization, like if a task has start date and duration and doesn't have end date it will calculate it. But other than that it expects data coming from server to be valid.

If you need the Gantt to recalculate tasks after data loading you should implement this yourself by calling Gnt.data.TaskStore#adjustToCalendar.

Post Reply