Our state of the art Gantt chart


Post by shaveta »

Hi,

I am using API to sync data, after sync how can i reset the counter used for undo/redo buttons?

reset.png
reset.png (57.96 KiB) Viewed 521 times

Post by arcady »

Try something like this:

gantt.project.on({
    requestDone : () => {
        const stm = gantt.project.stm;
        // reset undo/redo queue after load/sync requests
        stm.disable();
        stm.resetQueue();
        stm.enable();
    }
});

The event docs: https://bryntum.com/docs/scheduler/#Scheduler/crud/AbstractCrudManagerMixin#event-requestDone


Post Reply