Our state of the art Gantt chart


Post by shimnx »

When I change the order of tasks, I click Save, but there is no change record of the Squence field in my change record, because we need the squence field to record the order of tasks on the page


Post by mats »

sequenceNumber is a calculated field, not a field that's stored in our data. If you need this, you should probably add your own field to the data model and persist it just like your other fields.


Post by shimnx »

How should I add it, mainly we want our front-end data and background data in the same order


Post by alex.l »

This is that you need https://bryntum.com/docs/gantt/api/Core/data/mixin/TreeNode#field-parentIndex
https://bryntum.com/docs/gantt/api/Core/data/field/DataField#config-persist

When you reorder tasks, parentIndex will be changed and changes will be available in taskStore.changes. All you need is to make that field persist: true to send it on server side.

All the best,
Alex


Post Reply