Posted 11 May 2020, 11:09 pm EST
Hi team,
I have a grid which has columns that are always hidden. When I export this grid to Excel I want the hidden columns to be exported as well without changing the grid(showing hidden columns). I also want to not export some visible columns. is there a way I can choose which columns to export. Thanks
FYI -I am using below code to export
export(grid) {
const view = grid.collectionView;
let oldPgSize = view.pageSize,
oldPgIndex = view.pageIndex;
grid.beginUpdate();
view.pageSize = 0;
gridXlsx.FlexGridXlsxConverter.saveAsync(
grid,
{
includeCellStyles: true,
includeColumnHeaders: true
},
this.dataService.companyName+'_'+this.dataService.companyNr+'_'+"Account"+".xlsx",
saved => {
view.pageSize = oldPgSize;
view.moveToPage(oldPgIndex);
grid.endUpdate();
},
null
);
}