Gantt chart split task behaviour

Hello.

I updated the gantt chart library from Version 7.0.13 enterprise to 7.1.6 enterprise and I found a strange behaviour around split tasks. Did something changed in the lib that nested split tasks arent shown properly?

Before (right way):

After:

Thanks in advance.

Hello Alves,
Starting from the 7.0.1 version, Gantt displays split tasks from all levels, not only on the first level:
https://docs.dhtmlx.com/gantt/whatsnew.html#701
Right now, there is no way to configure how it should work. In the future, the dev team will add that feature, but I cannot give you any ETA.
As a workaround, you can change the hide_bar property when you expand/collapse the split parent task:
http://snippet.dhtmlx.com/5/4a520c59c

If you have a different use case, please, describe it in more detail.
You can also add your configuration in the following snippet and make sure that the issue is reproduced there:
https://snippet.dhtmlx.com/38ee1b370
Then, click on the Share button and send me the link.
Or send me a ready demo with all the necessary Javascript and CSS files so that I can reproduce the issue locally.

1 Like

Hello ramil,

thanks for the answer. I found out that it has to do with a misplaced render:“spit” in one of the items that led to the wrong displaying of the tasks.

Thanks and have a nice day.

Hello Alves,
In the 8.0 version, the dev team added the onBeforeSplitTaskDisplay event handler that allows filtering split tasks:
https://docs.dhtmlx.com/gantt/api__gantt_onbeforesplittaskdisplay_event.html

Also, now split tasks obtain the $rendered_at property:
https://docs.dhtmlx.com/gantt/desktop__split_tasks.html#filteringsplittasks:~:text=Styling%20separate%20split%20tasks
https://docs.dhtmlx.com/gantt/desktop__task_properties.html#:~:text=expected%20by%20Gantt.-,%24rendered_at,-string%20|%20number

You can combine both of these to display split tasks only over their direct parent tasks.

Here is an example of how it can be implemented: