I want to implement a button which allows us to expand/collapse all the Grouped Columns in a programmatic way. Something similar to the already existing expand/collapse icon but for all the column groups without using the pivot panel.
I checked in the documentation, but I couldn't find anything related to this.
You can use the aggrid functions
setColumnGroupStateandgetColumnGroupStatealong with some recursion to achieve this. Please find below working example.plunkr