I'm using IGX-GRID that has check boxes and want click export to excel want to show on excel only the selected ones.
Any help implementing this feature will be appreciate it.
Hello Ameur,
Thank you for posting in our community.
You can achieve the required by getting the selected rows using selectedRows method of the igxGrid and then passing the data to the IgxExcelExporterService's exportData method:
public exportButtonHandler() { this.excelExportService.exportData(this.grid.selectedRows(), new IgxExcelExporterOptions("ExportFileFromGrid")); }
Thanks a lot it did work for me, however if I don't select any thing and hit export it firing and empty excel.
Any way to not display it in case no selection made?
Thanks