aggrid grouping questions

I am loading the grid from an API through an in-memory table. I need to group the table on-load by the first column. The PM wants a button to open all the groups, and I would like to hide the grouping icons so users can’t un-group. I have not been able to find any way to do this.

Hi,

are you using the NG Data Grid or the NG Power Grid ?
If you are using the Power Grid you can add this property in the gridOptions

groupDefaultExpanded : -1

The index -1 indicate expand all; you can set the index to 1 to let expand only the first group.

Hiding the group icon could be achieved via stylying.

e.g.

.ag-row .ag-group-expanded, .ag-row .ag-group-contracted {display: none;}