This is a migrated thread and some comments may be shown as answers.

Excel download: NaN downloaded as zero

1 Answer 78 Views
PivotGrid
This is a migrated thread and some comments may be shown as answers.
Labhesh
Top achievements
Rank 1
Labhesh asked on 23 May 2016, 12:25 AM

Hi , 

 

I am using pivotgrid's angular version. 

 

When I download using excel (saveAsExcel()) functionality, all NaNs in my pivotgrid download as 0s in the excel. I'd like them to be kept as NaNs...

How can I do this?

 

Thanks, 

 

Labhesh

$scope.exportToExcel = function() {
    var pivotGrid = $("#pivotgrid").data("kendoPivotGrid");
    pivotGrid.saveAsExcel();
};

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 25 May 2016, 06:42 AM
Hello Labhesh,

The PivotGrid Excel export functionality is designed to export the data values without any modifications. If you would like to modify the representation of the exported data then you will need to modify the generated OOXML document. Check this help topic for more details:
Regards,
Georgi Krustev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
PivotGrid
Asked by
Labhesh
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or