I am trying to use igGridExcelExporter component in angular2.0 sample, but it not working. I want to export it with excel feature.
Hi Sameer,
Basically you should not have experienced issues. It will be helpful if you provide more information on what exactly happens, is there any error that occurs, and what version of IgniteUI you are using.
I am looking forward to hearing from you.
I am trying to add below code to the angular 2 final version sample what you guys have provided in github.
$.ig.GridExcelExporter.exportGrid($("#xyz"), { fileName: "igGrid", worksheetName: "data", tableStyle: "tableStyleLight13" });
But it is saying GridExcelExporter is not defined. Also I tried this http://es.infragistics.com/community/forums/t/106636.aspx also but it is giving me "core.umd.js:3427 EXCEPTION: Cannot read property 'igHierarchicalGrid' of undefined".
I want to export data to excel with features.
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.
Hi Hristo,
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"
Warm regards,
Saravanan
Any updates on this issue?
Thanks,
Please provide a sample demonstrating the issue that I can investigate for you.
Please find the attached sample.
G.Saravanan