Premium support for our pure JavaScript UI components


Post by chrisb »

Hey team,

Using the advanced demo - https://www.bryntum.com/examples/gantt/advanced/ - when you drag a task (e.g 1.1.3) to be a child of another parent (e.g. 1.2) the 1.1.3 WBS is retained.

Is there anyway to force update this? Should it be updated?

Thanks,

Chris


Post by Maxim Gorkovsky »

Hello.
This is by design. You can update WBS code with this API: https://bryntum.com/docs/gantt/#Gantt/model/TaskModel#function-refreshWbs Call it on the root node.


Post by chrisb »

I'm trying to refresh on moving a task - using the TaskStore.move event - however this doesn't seem to be firing when I move (either by dragging / dropping or by using cut & paste). Is this the right event to listen to?


Post by alex.l »

Hi chrisb,

Please use https://bryntum.com/docs/gantt/#Gantt/data/TaskStore#event-change

and check if you called refreshWbs on a correct record. Try to use gantt.project.refreshWbs();.

It also may be helpful to search in our forums, we had similar questions before.

All the best,
Alex

All the best,
Alex


Post Reply