HalitTalha / ng-material-extensions

Extended features for @angular/material components
Apache License 2.0
101 stars 51 forks source link

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

Open jules1091 opened 2 years ago

jules1091 commented 2 years ago

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 commented 2 years ago

facing the same issue

EmrahSignorini commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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.