Our state of the art Gantt chart


Post by raju1 »

Hi,

Is it possible to show a popup confirmation before applying Vertical Drag?
We have added the below code to the advanced demo: (https://bryntum.com/examples/gantt/advanced/)

import { MessageDialog } from '../../build/gantt.module.js?449267';

And for the gantt configs, under features, we have added the below code:

rowReorder: {
    listeners: {
        async gridRowBeforeDropFinalize(source) {
            source.context.async = true;
            const
            result        = await MessageDialog.confirm({
                title   : 'Please confirm',
                message : 'Allow this operation?'
            });

        // true to accept the changes or false to reject them
        source.context.finalize(result === MessageDialog.yesButton);
    }                
},
},

The change goes through irrespective of the option selected.
Any thoughts / suggestions?

Thanks,
Nagaraju


Post by mats »

Async finalization is currently not supported but definitely should be. Ticket opened: https://github.com/bryntum/support/issues/2716


Post by derulker »

I am also in need of this functionality (async finalization of row drag and drop). Is there a timeline on this?

Thanks.


Post by mats »

We'll try to address this for 4.2.0!


Post Reply