Our state of the art Gantt chart


Post by mv2022 »

In the name field, how can I include both the name and also the WBS in the task editor? By default, it only shows the name but it would also be helpful to see the wbs field when adding items.


Post by alex.l »

If you set https://bryntum.com/docs/gantt/api/Gantt/view/GanttBase#config-dependencyIdField
to wbsCode, you will see that

new Gantt({
    appendTo          : 'container',
    dependencyIdField : 'wbsCode',

project : {
    autoLoad  : true,
    transport : {
        load : {
            url : '../_datasets/launch-saas.json'
        }
    }
},

columns : [
    { type : 'name', width : 250 }
]
});
Attachments
Screenshot 2022-08-10 at 10.11.41.png
Screenshot 2022-08-10 at 10.11.41.png (235.19 KiB) Viewed 310 times

All the best,
Alex


Post by mv2022 »

This seems to work if there is existing data being loaded, for example in the advanced demo. However, if I delete all the existing tasks, and create a bunch of new tasks and sub-task, the wbs, does not work. Is there a way to add the wbs for the new tasks that are being added ?

Thanks.


Post by tasnim »

Hi,
Looks like a bug, I've created a ticket for that. Here it is https://github.com/bryntum/support/issues/5054

Thank you for your report :).
Tasnim


Post Reply