2

I am using ag-grid with React, and this is my code to export to CSV at the moment:

    exportToCsv() {
    let params = {
      fileName: this.state.fileName,
      processCellCallback: this.formatCsv.bind(this),
      columnGroups: true
    }
    this.api.exportDataAsCsv(params)
  }

If I hide some columns in Ag-Grid, they don't show up in the CSV. Is there a way to hide the columns on the website, but have them show up in CSV?

Alternatively, if I convert the data in those columns to tooltips, can they be included in the CSV?

1 Answer 1

1

Define all the columns to display on CSV in columnKeys within params for export

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.