partizanos
partizanos

Reputation: 1136

How to have column filtering on two headers for a grid/matrix/table (excel style)

Hell I am using ag-grid enterprise. I want to know what is the best way to to filter columns and rows:

eg: col1 col2 col3 col1

col2

col3

When I filter out the column col2 with column selection I want the following result:

 col1 col3

col1

col3

So far I attempt to solve this with updating the rows based on external column filter (duplicating the state of what columns are currently viewed externally of ag-grid). But it is far from elegant, I wonder what would a better approach be? Maybe it's a good use case for creating a custom plugin?

Upvotes: 0

Views: 148

Answers (1)

anotha_beltalowda
anotha_beltalowda

Reputation: 51

It seems like what you want are RowGroups, and the toolpanel. See these two pages for details

Row Grouping Column Tool Panel

Upvotes: -1

Related Questions