Hi,
I'm using the excelExportService.ExportData and when there's an empty source an empty file gets created without headers. I'd create an Excel sheet that contains the column hearders to be produced even if there is not data. Is this possible?
Thanks,
JK
Hi Jeff,
Thank you for posting in our community.
You can define an array that holds rows with empty fields and export it using the exportData method or have a hidden igxGrid with rows with empty fields that are exported using the export method.
I have created a small sample in StackBlitz demonstrating this behavior. Please test it on your side and let me know whether it helps you achieve your requirement.
Thanks so much Martin! This works perfectly.
I am glad that you find my suggestions helpful.
Thank you for using Infragistics components.