Hi,
There seems to be a bug with the sort functionality whereby if the user clicks on the sort control while the report is still loading, it crashes with the below error in the console.
Codefail: DevExpress.Blazor.Reporting.DxReportViewer[0]
System.InvalidOperationException: Document is creating.
at DevExpress.XtraReports.UI.XtraReport.DevExpress.XtraReports.IReport.CreateDocumentCoreAsync(Single progressRange, CancellationToken token)
at DevExpress.XtraReports.Native.DocumentCreator.CreateAsync(Single progressRange, CancellationToken token)
at DevExpress.Blazor.Reporting.Viewer.Internal.Services.ReportBuilderWasm.BuildAsync(IReport report, CancellationToken token)
at DevExpress.Blazor.Reporting.DxReportViewer.StartBuildAsync()
at DevExpress.Blazor.Reporting.DxReportViewer.StartPartialBuildAsync(Int32 pageIndex)
at DevExpress.Blazor.Reporting.DxReportViewer.HandleBrickClickAsync(MouseEventArgs args, BrickMapNodeWeb brick, Int32 pageIndex)
I have attached a simple example report, simply click on the header groupings during the first few seconds of loading to trigger a sort, or within a few seconds of a previous sort. Because of the size of the report, it is quite natural that the user may click on the headers to sort them, however they can get the crash due to the time it takes between each regeneration before it is safe to click again.
This problem is similar to https://supportcenter.devexpress.com/ticket/details/t1226866 which had the same problems when using the drill down instead of the sort.
Thanks
Hi John,
Thank you for reaching out to our support team. I see the issue in the project you shared, so I forwarded this ticket to our R&D team for further research.
Best regards,
Boris