Our state of the art Gantt chart


Post by shaveta »

Hi

Drag/Drop in gantt is not updating the value of WBS and Sequence dynamically in ES6 gantt, but in ExtJs gantt it calculates dynamically.

Can you please explain if it is developed this way?


Post by mats »

Please show how to reproduce? Can you please also try latest nightly build?


Post by shaveta »

ExtJS example https://www.bryntum.com/examples/gantt-for-extjs/advanced/#en on drag/drop task WBS recalculates
but in ES6 example if you drag task WBS didn't recalculate https://www.bryntum.com/examples/gantt/advanced/


Post by mats »

This is by design, you can recalculate WBS anytime using https://bryntum.com/docs/gantt/#Gantt/model/TaskModel#function-refreshWbs


Post by shaveta »

mats wrote: Fri Mar 26, 2021 9:12 am

This is by design, you can recalculate WBS anytime using https://bryntum.com/docs/gantt/#Gantt/model/TaskModel#function-refreshWbs

Thanks Mats!! Is there any example of how to call refreshWBS ?


Post by alex.l »

Hi shaveta,

You could use https://bryntum.com/docs/gantt/#Scheduler/data/EventStore#event-update event to call it on time:

gantt.eventStore.on('update', ()=>gantt.project.firstChild.refreshWbs());

All the best,
Alex

All the best,
Alex


Post by shaveta »

Thanks Alex!!


Post by shaveta »

alex.l wrote: Fri Apr 02, 2021 9:12 am

Hi shaveta,

You could use https://bryntum.com/docs/gantt/#Scheduler/data/EventStore#event-update event to call it on time:

gantt.eventStore.on('update', ()=>gantt.project.firstChild.refreshWbs());

All the best,
Alex

The only issue i can see now is it is not recalculating WBS on indent/outdent.. Any patch for this?


Post by pmiklashevich »

I see no issues. Please try in Advanced demo, just taskStore instead of eventStore.

gantt.taskStore.on('update', () => {
    console.log('updated')
    gantt.project.firstChild.refreshWbs()
});
Запись активности на экране 2021-04-02 в 19.07.10.gif
Запись активности на экране 2021-04-02 в 19.07.10.gif (4.39 MiB) Viewed 1055 times

Pavlo Miklashevych
Sr. Frontend Developer


Post Reply