igniteui-angular icon indicating copy to clipboard operation
igniteui-angular copied to clipboard

igxTreeGrid Export to Excel missing file extension in downloaded file

Open prabakaran1311 opened this issue 7 years ago • 4 comments

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.

  • igniteui-angular version: 7.1.7
  • browser: Internet Explorer

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

prabakaran1311 avatar Mar 13 '19 11:03 prabakaran1311

@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?

kdinev avatar Mar 13 '19 12:03 kdinev

@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.

prabakaran1311 avatar Mar 13 '19 12:03 prabakaran1311

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.

tachojelev avatar Mar 13 '19 13:03 tachojelev

@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

prabakaran1311 avatar Mar 18 '19 12:03 prabakaran1311