任务开始时间和结束时间为空,不想显示任务轴,该怎么设置!


#1

任务开始时间和结束时间为空,不想显示任务轴,该怎么设置


How to achieve, the length of the parent task is not affected by the child task
#2

Hello Songfei,
Please, post your questions only in English.

Regarding the issue, probably, some tasks don’t have enough date parameters. Each regular task should have at least 2 date parameters: start_date, end_date, duration. When a regular task doesn’t have those parameters, it should be unscheduled:
https://docs.dhtmlx.com/gantt/desktop__unscheduled_tasks.html
Project tasks ignore the date parameters, so they can be loaded without those parameters:
http://snippet.dhtmlx.com/dd3973ee5

However, it is possible to load tasks without dates. In that case, the dateless tasks will obtain the date parameters from their children or from other tasks.
But those tasks cannot be the first one that you load:
http://snippet.dhtmlx.com/05ced85c4
http://snippet.dhtmlx.com/bc8fdfc9f
If you want to have something like projects, you can assign any date in the onTaskLoading event handler. After adding children, you will be able to see the task, and after you drag or resize children, the parent task will be resized:
http://snippet.dhtmlx.com/a0e68e798

If you have a different issue or question. Please describe it with more details in English.
Also, you can add your Gantt configuration in the snippet above then click on the “Share” button and send me the link.