Author Topic: Hide columns entirely in ExportData  (Read 1901 times)

ralph1996

  • Pro Ultimate
  • Jr. Member
  • *
  • Posts: 80
    • View Profile
Hide columns entirely in ExportData
« on: June 07, 2017, 11:49:20 pm »
Is there a way to hide certain columns when using exportData?  The exportRender attribute only inhibits the calling of the render method attached to the column, but stilld displays the raw data for the column.  I want the column completely hidden.

I tried using a function for the hidden attribute of the column:

function(ui)
{
   if(ui.Export)
      return true;
   return false;
}

But that did not work.  It appears the hidden attribute cannot be set to a function.

Is there any other way to do this?  We have a column of checkboxes for selection that we would prefer not to appear in the export.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Hide columns entirely in ExportData
« Reply #1 on: June 08, 2017, 10:37:52 am »
you may use copy:false for that column.

https://paramquery.com/pro/api#option-column-copy