I am trying to use igGridExcelExporter component in angular2.0 sample, but it not working. I want to export it with excel feature.
Please make sure that your initializing a new GridExcelExporter object, and then call the exportGrid method:
exportExcel() { var exporter = new $.ig.GridExcelExporter({}) exporter.exportGrid(this.grid, {}, {}); }
Please let me know if this resolves the issue on your side.
I've tried the steps but below line throws error $.ig.GridExcelExporter.exportGrid
Property 'exportGrid' does not exist on type 'typeof GridExcelExporter'.
I am glad you have managed to resolve your issue.
Thanks for your support :)
Hello Hristo,
I am able to make it working. I was calling the ig export file before actual IG component, that's why it was not able to detect IG object.
Solution is working now.