IgniteUI / igniteui-angular

Ignite UI for Angular is a complete library of Angular-native, Material-based Angular UI components with the fastest grids and charts, Pivot Grid, Dock Manager, Hierarchical Grid, and more.
https://www.infragistics.com/products/ignite-ui-angular
Other
569 stars 162 forks source link

igxTreeGrid Export to Excel missing file extension in downloaded file #4302

Closed prabakaran1311 closed 5 years ago

prabakaran1311 commented 5 years ago

Description

I am using igxTreeGrid in angular7. while exporting to excel file is downloading without file extension .xlsx Also i am using remote filtering i have to download remote data in the excel.

Steps to reproduce

Basic implementation steps i have used to setup igxTreeGrid

Result

while Exporting to excel file is downloading without file extension .xlsx sample

Expected result

Need to download Excel file with file extension

Attachments

Sample screenshot is Attached

kdinev commented 5 years ago

@prabakaran1311 I just tested the exporter in the live samples and the file extension is correct:

https://www.infragistics.com/products/ignite-ui-angular/angular/components/treegrid/export_excel.html

image

Could you please provide the code you initiate the export with?

prabakaran1311 commented 5 years ago

@kdinev Thanks for your reply. below is my code <igx-tree-grid #grid1 [data]="data | async" childDataKey="Properties" (onCellClick)="redirect($event.cell)" [width]="'100%'" [height]="'100%'" [paging]="true" [exportExcel]="true" exportExcelText="To Excel" [perPage]="pageSize" [allowFiltering]="true" [showToolbar]="true" [columnHiding]="true" [toolbarTitle]="GridName" expansionDepth="0" [displayDensity]="'compact'" (onDataPreLoad)="processData()" (onSortingDone)="processData()" (onFilteringDone)="processData()" [emptyGridMessage]="gridMessageEmpty">
<igx-column *ngFor="let c of igxGridColumn" [field]="c.field" [dataType]="c.dataType" [header]="c.label" [sortable]="c.sortable" [filterable]="c.filterable"

@kdinev i have also tested live examples its worked fine but while integrating with my application i am getting above result. Already some of functionalities running using jquery infragistics grid.

tachojelev commented 5 years ago

Hello @prabakaran1311,

Can you please provide us with an isolated working sample that uses the settings you mentioned from above, where the issue with the missing extension is reproduced? Is MS Excel installed on the machine you reproduced the issue? Are you reproducing this on IE 11 only? It would also be great if you could attach one of the files with the missing extension you produced. This will allow us to look further into the issue.

prabakaran1311 commented 5 years ago

@tachojelev i find the issue why its not exporting with the file extension. Because i am using older jquery infragistics js files which is referencing to our application infragistics.core.js this file causing the conflicts between both version. Once i removed this js its started working fine. Thanks for your help