split task from Microsoft Project to dhtmlxgantt

I would like to bring “update project” function in Microsoft Project to be used in dhtmlxgantt. I wonder how to bring “split task” data into dhtmlxgantt? I don’t know how to split task in dhtmlxgantt. Please suggest, thank you.

Hello,

I would like to bring “update project” function in Microsoft Project to be used in dhtmlxgantt.

Gantt doesn’t have that functionality. You will need to manually implement it by using the Gantt API and Javascript.

Technically, you will need to show a dialog and update the task objects.
To show a dialog, you can implement a custom solution or use a third-party library. Or you can create a dialog box with the modalbox method and add the HTML elements you need:
https://docs.dhtmlx.com/gantt/desktop__message_boxes.html#modalbox

To select multiple tasks, you will need to enable the multiselect extension:
https://docs.dhtmlx.com/gantt/desktop__multiselection.html
Then you will be able to select several tasks by holding the Control or Shift buttons and clicking on the tasks.

To iterate selected tasks, you need to use the eachSelectedTask method:
https://docs.dhtmlx.com/gantt/api__gantt_eachselectedtask.html
And inside that function, you can call the code you need.

Here is an example of how it can be implemented:
https://snippet.dhtmlx.com/44ud8yuj


I wonder how to bring “split task” data into dhtmlxgantt? I don’t know how to split task in dhtmlxgantt.

To show tasks on the same rows, you need to use the Split Tasks functionality.
Under the hood, a task has child tasks and these child tasks are displayed on the same line instead of separate lines for each child task:
https://docs.dhtmlx.com/gantt/desktop__split_tasks.html
There is no way to have the mixed mode when some tasks are displayed on the same line and others are displayed as usual. The dev team will add that feature in the future, but I cannot give you any ETA.

To display child tasks on the same row, you need to add the render: "split" property to the parent task.
If you want to split an existing task, you need to implement a custom solution by using the Gantt API and Javascript.
I have the following examples of the implementation where you can split a task by half:
http://snippet.dhtmlx.com/27c48ee9d
http://snippet.dhtmlx.com/d10dc57cb

It can help you to start implementing your solution.