I am trying to use igGridExcelExporter component in angular2.0 sample, but it not working. I want to export it with excel feature.
Hi Hristo,
Please find the attached sample.
Warm regards,
G.Saravanan
Please provide a sample demonstrating the issue that I can investigate for you.
Any updates on this issue?
Thanks,
Saravanan
FYI, we are using version 2016.1 and we tried in machine with infragistics not installed as well, both not working.
var exporter = new $.ig.GridExcelExporter({}) exporter.exportGrid($("#grid1"), { fileName: "igGrid" }, { success: function () { alert("exporting has finished!"); } } );
we face below error on Excel Export now,
"Invalid Enum Argument: format value: 2"
Hello G.Saravanan,
This error means that the required resources for exporting are not loaded. Please make sure you have added those, as explained in step 3) from above:
<!-- External files for exporting --><script src="http://www.igniteui.com/js/external/FileSaver.js"></script><script src="http://www.igniteui.com/js/external/Blob.js"></script>
<!-- IgniteUI exporting resources --><script src="http://cdn-na.infragistics.com/igniteui/2016.2/latest/js/modules/infragistics.documents.core.js"></script><script src="http://cdn-na.infragistics.com/igniteui/2016.2/latest/js/modules/infragistics.excel.js"></script><script src="http://cdn-na.infragistics.com/igniteui/2016.2/latest/js/modules/infragistics.gridexcelexporter.js"></script>
I am also attaching a sample for your reference, you need to do npm install, npm start and navigate to the igGrid sample.
Please let me note if you are using version 2017.1 of IgniteUI, because the in 2017. those files are modularized, and references need to be updated.