[IgxGrid] - How do you groupby columns that are autogenerated? #12717
Answered
by
georgianastasov
mddifilippo89
asked this question in
Q&A
-
With autogenerated columns how do you groupby columns through the UI when showGroupArea is true? |
Beta Was this translation helpful? Give feedback.
Answered by
georgianastasov
Mar 6, 2023
Replies: 1 comment
-
Hello @mddifilippo89 When we have auto-generated columns and we want to group them, what we can do is to handle the ngAfterViewInit hook and, when loading and rendering the grid, access its columns. We can then iterate through them and set each groupable property to true.
Here could be found a small sample demonstrating the above mentioned approach. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kacheshmarova
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @mddifilippo89
When we have auto-generated columns and we want to group them, what we can do is to handle the ngAfterViewInit hook and, when loading and rendering the grid, access its columns. We can then iterate through them and set each groupable property to true.
Here could be found a small sample demonstrating the above mentioned approach.