Search code examples
ag-gridag-grid-angular

Ag-grid hide rowGroupPanel dynamically


enter image description here

I tried to hide/show this rowGroupPanel dynamically by using a checkbox, if the checkbox is checked, then I'll update it as 'always' else 'never' in gridOptions as shown below but it failed.

enter image description here

Is there any way to achieve this?


Solution

  • there is no inbuilt method by AG-Grid to do this nor it is documented in documentation anywhere but you can use simple JavaScript to target the rowGroupPanel element and control the visibility of it. here is a simple demo