aggrid grouping questions

Forum to discuss the new web client version of Servoy.

aggrid grouping questions

Postby rndmbnjmn » Thu Jan 30, 2020 10:08 pm

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.
Posts: 1
Joined: Thu Jan 30, 2020 10:04 pm

Re: aggrid grouping questions

Postby paronne » Fri Jan 31, 2020 9:50 am


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.

Code: Select all
.ag-row .ag-group-expanded, .ag-row .ag-group-contracted {display: none;}
Posts: 136
Joined: Fri Nov 02, 2012 3:21 pm

Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 1 guest