1

We are using ui-grid in our application. We are using grouping functionality of ui-grid and it's working perfectly. Now we are exporting it to CSV and at this point I am facing issue. It is exporting same it's showing on grid. But we don't want that group row highlighted in attached image. We are only looking for rows which contains all the data in this case count is 4. Can someone please help to fix this issue.enter image description here

We are using below code to export it in CSV:

 var exportColumnHeaders = exportService.getColumnHeaders(grid, uiGridExporterConstants.VISIBLE);
      var exportData = exportService.getData(grid, uiGridExporterConstants.ALL, uiGridExporterConstants.VISIBLE);
      var csvContent = exportService.formatAsCsv(exportColumnHeaders, exportData, grid.options.exporterCsvColumnSeparator);
        exportService.downloadFile(fileName, csvContent, grid.options.exporterOlderExcelCompatibility);
1
  • I have fixed this issue by writing custom code to export in excel. I have used exceljs for that. Commented Feb 12, 2021 at 14:51

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.