Author Topic: Hidden column not getting exported in csv  (Read 1862 times)

kshipra

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 94
    • View Profile
Hidden column not getting exported in csv
« on: April 24, 2017, 11:33:15 pm »
var columns = [
              {
                  title: "Id",
                  editable:false,
                  width: 50,
                  hidden: true,
                  dataIndx: "Id",
                  copy: true,
                  filter: { type: 'textbox', condition: 'contain', listeners: ['keyup'] }
              }, ... ]

I am using local export using filesaver.js. The hidden Id column is not getting exported with csv format. It is getting exported with excel and json format.


       

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6313
    • View Profile
Re: Hidden column not getting exported in csv
« Reply #1 on: April 25, 2017, 05:27:18 pm »
Please use beforeExport event to show/hide desired columns in csv output.

https://paramquery.com/pro/api#event-beforeExport