I'd like to remove block screen on sync and add more actions:
Before sync: change task color to grey.
After sync: back color to normal.
My purpose: sometime I need to change 50 small change but need to wait sync finish on each change. Now I'd like sync do in background and let me continue do my change.
In this case, cls field shouldn't be persisted, https://bryntum.com/docs/gantt/api/Core/data/field/DataField#config-persist so it shouldn't trigger sync again when you change it.
I am not sure how it should be working in your scenario. It's very common that changing 1 task will affect to many tasks and recalculate its dates.
If you have problems with the solution, please share your app, we will try to find what's wrong.
My need: I'd like to change selected task's color on listeners of Project Model
const project = new ProjectModel({
autoLoad: true,
autoSync: true,
listeners : {
beforeSync({ pack }) {
//I want to change color of selected task to gray
},
sync({ response }) {
//I want back color to normal
}
}
}
})