bryntum / support

An issues-only repository for the Bryntum project management component suite which includes powerful Grid, Scheduler, Calendar, Kanban Task Board and Gantt chart components all built in pure JS / CSS / TypeScript
https://www.bryntum.com
54 stars 6 forks source link

columnDrag event param insertBefore does not get updated once we set context.valid to false #9691

Open ghulamghousdev opened 3 months ago

ghulamghousdev commented 3 months ago

Forum post

Go to the basic grid example and use this code:

    onColumnDrag : (event) => {
        console.log(event.context.valid); // Always true here
        console.log(event.insertBefore); // Always the same once event.context.valid is set to false
        if (event.insertBefore) {
            event.context.valid = false;
        }
    },

And now try to drag the age column towards right and you can see that the insertBefore is always the city column.