ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

Export to Excel

Open sangramMCP opened this issue 8 years ago • 6 comments

Please make sure each of the following is true before submitting a new issue. We are a small team with limited time and it is very difficult to manage issues if they aren't reported correctly.

  • [ ] This is a bug report, not a question on how to use the grid.
    Use Stack Overflow or Gitter for questions.
  • [ ] You have searched the open issues to see if this bug has been filed before. We don't want duplicate issues.
  • [ ] You have reviewed the tutorials and documentation to ensure you are using the grid correctly. ui-grid.info
  • [ ] You are using the latest version of the grid. Older versions are not patched or supported.
  • [ ] You have provided steps to recreate your bug. A plunkr is even better.

sangramMCP avatar Dec 14 '17 14:12 sangramMCP

Not able to export excel as rendered in the grid, I mean, we have grouped data in grid, and we want the same grouping to be exported to excel too

sangramMCP avatar Dec 14 '17 14:12 sangramMCP

Please prepare an example and I can look at it. Use punkr or jsfiddle to illustrate your issue.

monster910 avatar Dec 19 '17 13:12 monster910

So I was able to see it by looking with the All Features tutorial (http://ui-grid.info/docs/#!/tutorial/401_AllFeatures) and from what I observer, although the group row headers themselves are not exported, the data is sorted in a grouped manner. @sangramMCP Do you require the group header rows?

mportuga avatar Jan 17 '18 02:01 mportuga

Hi All,

I want to generate the grid as demonstrated in the example:

http://embed.plnkr.co/fsJdENoN1ll4FUGsPzts/

And At the same time I need to export the header as well as super headers both in the excel.

Is that possible in Angular grid? If yes, Is there any example/sample code to illustrate the same.

Thanks, Sangram

sangramMCP avatar Jan 17 '18 17:01 sangramMCP

I don't believe that is possible off the shelf. That would be an enhancement.

mportuga avatar Jan 20 '18 18:01 mportuga

Take a look at this example

http://ui-grid.info/docs/#!/tutorial/410_excel_exporting_data_and_header

The excelExportHeaders setting takes a function that allows you to do whatever you want for an export header.

monster910 avatar Jan 26 '18 00:01 monster910