ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: ralph1996 on June 07, 2017, 11:49:20 pm

Title: Hide columns entirely in ExportData
Post by: ralph1996 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.
Title: Re: Hide columns entirely in ExportData
Post by: paramvir on June 08, 2017, 10:37:52 am
you may use copy:false for that column.

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