Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Last row is removed on export if table has groupheaders #132

Open
jules1091 opened this issue Nov 9, 2021 · 4 comments
Open

Last row is removed on export if table has groupheaders #132

jules1091 opened this issue Nov 9, 2021 · 4 comments

Comments

@jules1091
Copy link

I have a table with groupheaders like it is implemented in this example:
https://stackblitz.com/edit/angular-mattable-with-groupheader?file=app/table-basic-example.html

If I export this table as .csv the last row is removed from the table and not shown in the .csv file.

@mibasms
Copy link

mibasms commented Nov 9, 2021

facing the same issue

@EmrahSignorini
Copy link

I planned on using groupBy with the mat exporter and saw this issue I decided to check myself if it was still the case.

I created a stackblitz to play around with. I used demo that is provided for mat table exporter and changed the table with the one that @jules1091 provided, when I click on CSV and open the file to me it seems that every row is there.

If I understood correctly the issue, the row with the data from the Oxygen element should not be there, but in reality when I open the file everything looks good to me

@jules1091
Copy link
Author

jules1091 commented Jan 12, 2022

The exported file contains all rows but after the download is finished, the last row (normal row, not the grouping one) in my view disappears.

@EmrahSignorini
Copy link

Uhm, I implemented the groupBy also on my end and when i export the file, and I checked every row in the mat-table with the excel file and on my end every row in the view is there.

I decided to go back on the stack blitz, and If I understand correctly when I press the export button and wait for the download to finish the oxygen row should disappear from the table but it's still there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants