Hi, I am also having same issue when using Adaptors.CustomAdaptor.
Export is working fine with direct datasource bninding but when used Adaptors.CustomAdaptor its not working
Syncfusion.Blazor.Grid" Version="19.4.0.43"
Error
blazor.server.js:1 [2022-03-08T07:24:42.995Z] Error: System.NullReferenceException: Object reference not set to an instance of an object.
at Syncfusion.Blazor.Grids.Internal.GridExcelExport`1.System.IDisposable.Dispose()
at Syncfusion.Blazor.Grids.SfGrid`1.ExcelExport(ExcelExportProperties excelExportProperties, Nullable`1 isMultipleExport, Object workbook, Nullable`1 isBlob)
at SystemUsers.ToolbarClickHandler(ClickEventArgs args) in SystemUsers.razor:line 156
at System.Threading.Tasks.Task.<>c.
at Microsoft.AspNetCore.Components.Rendering.RendererSynchronizationContext.ExecuteSynchronously(TaskCompletionSource`1 completion, SendOrPostCallback d, Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Components.Rendering.RendererSynchronizationContext.ExecuteBackground(WorkItem item)
Hi, tried with "Syncfusion.Blazor.Grid" Version="19.4.0.55", still same issue.
Steps To Save Or Export Each Sheet As CSV/PDF File In Excel-
As you know, Microsoft Excel can save current worksheet as an individual .csv file or PDF file. Therefore, you can save or export every sheet as .csv file or PDF file one by one manually.
1. Switch to the sheet that you will save or export as an individual .csv file, and click File (or Office button) > Save As.
2. In the opening dialog box, specify the destination folder that you will save the .csv file into, click the Save as type box and select CSV (Comma delimited) (*.csv) or PDF (*.pdf) from the drop down list, and click the Save button.
3. There will be two warning dialog boxes coming out successively. Please click OK > Yes.
Note: If you save active worksheet as PDF file, these dialog boxes won't pop up. Just go ahead to next step.
4. Repeat above step 1-3 to save other sheets as individual .csv files one by one.
Regards,
Rachel Gomez
Hi Gomez, Your solution is totally unrelated to above issue, this is not an excel issue.
Turns out the error was due to this AllowExcelExport="true", I didnt put this on grid.