I have an error that happens when you try to reorder column that is not visible by default. I am also attaching the screen recording of an error. I console log events that are fired by the gantt:
I have tried the same steps here https://bryntum.com/products/gantt/examples/frameworks/react/javascript/advanced/build/ and was unable to reproduce the issue. Can you please try in our demo and see if you can reproduce this issue. Also which version of Gantt you are using? Can you please try upgrading to the latest version and see if it may solve your issue? If not, then I am afraid to say we are going to need a test case where we can reproduce this issue.
upgrading to the latest version didn't help. We were on the version 5.6.7.
I will try to gather more information for you. Maybe try to downgrade to see on which version this error started to happen or why for some columns (non-default columns) are not working and for others are working.
upgrading to the latest version didn't help. We were on the version 5.6.7.
I will try to gather more information for you. Maybe try to downgrade to see on which version this error started to happen or why for some columns (non-default columns) are not working and for others are working.
I managed to figure out what was causing an issue. An issue was introduced when I added this: viewtopic.php?t=27301 This should not be related with columns drag&drop functionality, but somehow is causing it.
I removed this: column.editor.picker.align.matchSize: false from the column configuration and I no longer have that issue for this column. So I think it should be easy for you to repro the bug.
Thank you very much guys for looking this for me! I tried to reproduce it one more time in your examples, but unsuccessfully. So I was further debugging my code.
An error was in my custom code: gantt.columns.on({ change: this.onAddColumnConfigureField }); Inside this onAddColumnConfigureField function.
if (column.editor.isCombo) { // changing this line to if (column.editor?.isCombo) fixes the issue
column.editor.picker.align.matchSize = false;
}
I am confused a little bit why a was not getting this error in the console. Something like: "cannot set isCombo of undefined" or something like that.