Lynn
Lynn

Reputation: 192

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?

Upvotes: 3

Views: 694

Answers (1)

sandeep joshi
sandeep joshi

Reputation: 2151

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

Upvotes: 1

Related Questions