Hi!
I'm trying to save and load the grid columns visibility, width and order. I found only one function (no event) related to this and it's the column picker's https://www.bryntum.com/docs/gantt/#Grid/feature/ColumnPicker#function-onColumnToggle
(By the way the documentation is a bit weird, with "The" as parameter, and missing words in the description)
I tried to configure it this way:
new Gantt({
adopt : document.body,
columns : [
{ type : 'name', field : 'name', width : 250 },
{ type : 'startdate' },
{ type : 'duration' },
],
features: {
columnPicker: {
onColumnToggle() { console.debug('Column toggled'); }
}
...
With this, when I right click the header and toggle a column visibility, I do get the event, but the column does not actually toggle anymore.
Is there a known way of properly saving and loading those columns configuration?
Thanks!