Comments (14)
Hi @ceolter ,
Is there an option to show/hide column group? I checked the api documentation and couldn't find any method for the same. We already have an option to show/hide a column or a set of columns using setColumnsVisible() also we have an option to set group column opened or closed using setColumnGroupOpened() but no such option for setColumnGroupVisible().
Thank you.
from ag-grid.
@jfstephe I think so, I couldn't find any other solution except below one
const group = this.columnApi.getColumnGroup("parent");
group.children.forEach(child => this.columnApi.setColumnsVisible(child, false));
from ag-grid.
this.columnApi.setColumnsVisible(colId, false)
this is not working for me, i tried it with different ways, like
this.columnApi.setColumnsVisible(headerName, false)
this.columnApi.setColumnsVisible(object, false)
its not working, no error and nothing is happening.
i have columnApi from onGridReady function
from ag-grid.
show / hide columns is done. see the column api.
from ag-grid.
Have you tried changing the columnDefs attribute and calling the onNewCols() api method?
from ag-grid.
maybe an active property on the colDef?
from ag-grid.
mixed feeling about this - typically i would just set the list of columns
again as mentioned above.
does this imply a gui for selecting columns to show also?
On 19 April 2015 at 05:40, Tanner Linsley [email protected] wrote:
maybe an active property on the colDef?
—
Reply to this email directly or view it on GitHub
#23 (comment).
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Statements and opinions expressed in this e-mail may not
represent those of the sender. Any review, retransmission, dissemination or
other use of, or taking of any action in reliance upon, this information by
persons or entities other than the intended recipient is prohibited. If you
received this in error, please contact the sender immediately and delete
the material from any computer.
from ag-grid.
@ceolter Yes. This will have gui to show/hide columns.
from ag-grid.
I like ng-grid's show/hide gui where each colDef has a visible value that defaults to true but when false hides the column. Makes it very easy in columnDefs to programmatically trigger the show/hide.
from ag-grid.
Any plans to implement this?
from ag-grid.
Yes. I plan to do this. About 6 weeks out.
On 11 Jun 2015 05:18, "Nilesh Namdeo Mali" [email protected] wrote:
Any plans to implement this?
—
Reply to this email directly or view it on GitHub
#23 (comment)
.
from ag-grid.
+1
from ag-grid.
Sorry to reiterate, but is this still on your radar?
from ag-grid.
I too have wasted time looking for this. Can we get something in the docs to say 'hide all columns = hide the group' (assuming that's what we have to do)?
from ag-grid.
Related Issues (20)
- ag-grid-enterprise types are not compatible with ag-grid-react HOT 2
- Component <Anonymous>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered. HOT 3
- Empty changelog HOT 1
- Master-Detail in community HOT 1
- Ag Grid Enterprise Edition - Date filter problems HOT 1
- how to create single secondary axis for two line chart in right and one groupedcolumn chart in right side in combination chart in ag grid react integration HOT 4
- Prevent row selection from cells
- Rich Select Editor with multi value selection and display HOT 1
- cellRenderer component and update rowData, throw error HOT 3
- can't copy cells on full editable rows
- Cust Tooltips is too bad experience HOT 1
- Is it possible to use a Firestore collection as a Server Side Row Model datasource? HOT 1
- How to update data in row pined top?
- onCellClicked doesn't work at Column property in production enviroment HOT 1
- cellStyle can't work in production enviroment HOT 1
- How to resolve this issue in console HOT 1
- Keyboard navigation broken in floating filter
- Custom filter rendered over table when setFilterModel is set on startup HOT 4
- AG Grid: duplicate group keys for row data, keys should be unique
- Expanding the column group will not recalculate the table width HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ag-grid.