Our state of the art Gantt chart


Post by sanjeeva »

Product: bryntum/gantt-trial@4.2.4

I am unable to add Subtask using the following code

subtask: {
                            text: 'Add Sub Component',
                            onItem: async ({source:gantt, taskRecord }) => {
                                const task = await gantt.addSubtask(taskRecord);                                
task.startDate = null; task.endDate = null; gantt.project.commitAsync(); } },

Post by mats »

Code works fine for me. Please provide a full runnable test case so we can debug it. Also, do you get any errors?


Post by sanjeeva »

Sorry, it was my mistake


Post Reply