ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: sshede on November 20, 2020, 12:35:30 pm
-
how to hide column on hit Excel export
-
Please use Columns().hide() API
https://paramquery.com/pro/api#method-Columns
-
Thanks to replay but you can give me example. i want column hide in exls also
-
Any columns hidden in the grid before method call to export to Excel are hidden in exported Excel too.
Example of Usage of Columns().hide():
Below code hides columns with dataIndx: 'ShipCountry' and 'ShipVia'
grid.Columns().hide({
diHide: ['ShipCountry', 'ShipVia']
}
//now export to Excel.
grid.exportExcel()