Git Product home page Git Product logo

Comments (14)

saurabhraja avatar saurabhraja commented on May 11, 2024 3

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.

PedramMarandi avatar PedramMarandi commented on May 11, 2024 2

@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.

marslan2037 avatar marslan2037 commented on May 11, 2024 2

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.

ceolter avatar ceolter commented on May 11, 2024 1

show / hide columns is done. see the column api.

from ag-grid.

lukelalo avatar lukelalo commented on May 11, 2024

Have you tried changing the columnDefs attribute and calling the onNewCols() api method?

from ag-grid.

tannerlinsley avatar tannerlinsley commented on May 11, 2024

maybe an active property on the colDef?

from ag-grid.

ceolter avatar ceolter commented on May 11, 2024

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.

nileshmali avatar nileshmali commented on May 11, 2024

@ceolter Yes. This will have gui to show/hide columns.

from ag-grid.

jongravois avatar jongravois commented on May 11, 2024

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.

nileshmali avatar nileshmali commented on May 11, 2024

Any plans to implement this?

from ag-grid.

ceolter avatar ceolter commented on May 11, 2024

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.

nitech avatar nitech commented on May 11, 2024

+1

from ag-grid.

nileshmali avatar nileshmali commented on May 11, 2024

Sorry to reiterate, but is this still on your radar?

from ag-grid.

jfstephe avatar jfstephe commented on May 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.