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

HGrid: Excel Export is not working properly when there are collapsible column groups in the child grid #15169

Open
MarielaTihova opened this issue Dec 12, 2024 · 0 comments

Comments

@MarielaTihova
Copy link
Contributor

Description

When we use collapsible column groups in a child grid, downloading the hgrid data in Excel does not work properly. The header of the column that is marked as [visibleWhenCollapsed]="true" is skipped in the excel data, but the data itself is there. Which leads to shift in the data for each of the next columns.

  • igniteui-angular version:
  • browser:

Steps to reproduce

  1. Create hgrid that has rowisland with at least one column group like this
<igx-column-group header="Delivery" [collapsible]="true">
     <igx-column field="delivery.dateOrdered" header="Date Ordered" [dataType]="'string'" [width]="'180px'" [sortable]="true" [resizable]="true" [visibleWhenCollapsed]="true"></igx-column>
     <igx-column field="delivery.dateOrdered" header="Date Ordered" [dataType]="'string'" [width]="'180px'" [sortable]="true" [resizable]="true" [visibleWhenCollapsed]="false"></igx-column>
     <igx-column field="delivery.dateShipped" header="Date Shipped" [dataType]="'string'" [width]="'180px'" [sortable]="true" [resizable]="true" [visibleWhenCollapsed]="false"></igx-column>
</igx-column-group>
  1. Try to export in excel format

Result

Result includes only the non-collapsed columns headers.

Expected result

Result should include the collapsed columns content (if collapsed) or the non-collapsed (otherwise).

Attachments

  1. We have this child grid so we expect to see all 3 columns in the excel downloaded
image
  1. Instead we see this
Excel download issue
  1. We see the above result regardless whether we have column collapsed or not
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants