I'm very new to ag-grid
. I'm searching for a way to order columns in the columns selection of the tool panel. (see also the image below, it's a cutout of the official documentation: https://www.ag-grid.com/javascript-grid-tool-panel-columns/#suppress-sections)
Image: column section tool panel of ag-grid
I know that sorting columns by drag and drop them in the grid is possible. For this case I set the option defaultColDef: { sortable: true }
(https://www.ag-grid.com/javascript-grid-sorting/) This will also be synchronized with the list in the tool panel.
But the reason for my special use-case is: it´s harder to scroll and sort 20-30 whole columns horizontally than sorting a list of names vertically like in the mentioned tool panel. That´s why i´m trying to sort/reorder columns in the tool panel with something like a drag and drop event. But i couldn´t find a way to access something like the columns tool panel api.
I also found an entry in the ag-grid
enterprise support, where my use case is called as a to complex feature but this post is now two years old. And the mentioned ticket number of this feature I couldn't found in their pipeline anymore. (see also: https://ag-grid.zendesk.com/hc/en-us/articles/360004964851-Can-I-change-the-order-of-the-columns-in-the-tool-panel-NOT-YET-NO-ETA-)