support icon indicating copy to clipboard operation
support copied to clipboard

Calendar column doesn't load data when setting project after gantt intialization

Open taauntik opened this issue 2 years ago • 2 comments

Forum post

Reproducible in gantt advance demo

To reproduce it, you need to take the project config out of the gantt config and add it after the gantt initialization

const project = new ProjectModel({
    // Let the Project know we want to use our own Task model with custom fields / methods
    taskModelClass : Task,
    transport      : {
        load : {
            url : '../_datasets/launch-saas.json'
        }
    },
    autoLoad  : true,
    taskStore : {
        wbsMode : 'auto'
    },
    // The State TrackingManager which the UndoRedo widget in the toolbar uses
    stm : {
        autoRecord : true
    },
    // Reset Undo / Redo after each load
    resetUndoRedoQueuesAfterLoad : true
});
const gantt = new Gantt({
    ...
});
gantt.project = project;

https://github.com/bryntum/support/assets/75997756/09f9f01d-62d6-48c6-b579-e8789a3cdc7f

taauntik avatar Sep 06 '23 13:09 taauntik

Can you please update us on the bug's progress?

atremel avatar May 02 '24 08:05 atremel

Should be fixed now, coming in next patch.

matsbryntse avatar May 02 '24 09:05 matsbryntse