Hi,
when I try to execute an export via the function ExcelExport() then an exception is thrown with the following details:
"Object reference not set to an instance of an object."
" at Syncfusion.Blazor.Grids.Internal.GridExcelExport`1.ExecuteResult(SfGrid`1 GridModel, Object dataSource)\n at Syncfusion.Blazor.Grids.Internal.GridExcelExport`1.ExportHelper(SfGrid`1 gridModel, Object dataSource)\n at Syncfusion.Blazor.Grids.Internal.GridExcelExport`1.ExcelExport(SfGrid`1 GridModel, ExcelExportProperties ExportProperties)\n at Syncfusion.Blazor.Grids.SfGrid`1.ExcelExport(ExcelExportProperties excelExportProperties, Nullable`1 isMultipleExport, Object workbook, Nullable`1 isBlob)\n at HQSB.Web.Ui.Components.BaseControls.HQGrid`2.ExcelExport() in /Users/svenborisbornemann/Documents/hqlabs/repositories/hq-blazor-solution/hq-blazor/Components/BaseControls/Grid/HQGrid.razor:line 446"
I think it's related to the data, because the Read function of the Custom DataAdaptor we use works. I wasn't able to create an example, but I collect all data which might help you.
In the DataAdaptor we use an IQueryable to fetch the data out of our DB. And I serialized the data into the Json file you can find in the attachment. There you can find the Grid, DataAdaptor and the models as well.
Thanks for your support.
Best regards.
Attachment:
Syncfusion_Grid_Export_968cbc6d.zip