SfGrid crash when inside a SfDialog modal
Hi,
Syncfusion V 32.1.21 - VS2022 -.NetCore 9.0
I have a Blazor Server web application that has been working correctly for several years. Recently, I started experiencing a crash with all the Syncfusion Grid that are placed inside a modal dialog.
After troubleshooting, I identified the issue as being caused by the following line:
<GridPageSettings PageSizes="@(new object[] { "12", "50", "100", "200" })" />
When this line is commented out, the grid no longer crashes and works as expected inside the modal.
I also tried changing the PageSizes definition based on suggestions I found online, for example:
PageSizes="@(new int[] { 12, 50, 100, 200 })"
However, this did not resolve the issue.
This same configuration worked correctly in the past, and the problem only occurs when the grid is rendered inside a modal dialog.
Is there a supported way to use <GridPageSettings> with custom page sizes when the grid is inside a modal dialog, or has there been a recent change that requires a different approach?
Thank you for your assistance.
Hi Ben,
Greetings from Syncfusion support
Based on your query, we understand that you are experiencing a Grid crash when rendering within a modal dialog while PageSettings are enabled. We would like to inform you that we have already logged an issue titled “SfDataManager throws exception when PageSize is enabled” for the same scenario. Thank you for taking the time to report this issue and helping us to improve our product. At Syncfusion, we are committed to fix all validated defects (subject to technological feasibility and Product Development Life Cycle) and this fix will be included in our patch release which is expected to be rolled out on January 13th , 2026.
You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link.
Feedback:https://www.syncfusion.com/feedback/72122/sfdatamanager-throws-exception-when-pagesize-is-enabled
Disclaimer: “Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.
Regards,
Guhanathan R
Hi Ben,
Thanks for your patience.
We are glad to announce that, we have included the fix for the “SfDataManager throws exception when PageSize is enabled” in our “32.1.23” release. So please upgrade to our latest version of Syncfusion NuGet package to resolve the reported issue. Please find the NuGet package for latest fixes and features from below.
NuGet: https://www.nuget.org/packages/Syncfusion.Blazor.Grid
Root Cause:
The exception occurred when the Grid component was placed inside a dialog and opened/closed multiple times. During repeated render cycles, the Grid instance or its scrollModule became null or undefined because the component was either disposed or not fully initialized. Invoking scrollModule.refresh() reference caused a runtime error.
Corrective Actions Taken:
Added defensive null checks before accessing the Grid instance and its scrollModule. The refresh() method is now invoked only when both objects are valid, preventing exceptions during dialog open/close cycles.
Regards,
Sanjay Kumar Suresh
- 2 Replies
- 3 Participants
- Marked answer
-
BJ Ben Junior
- Jan 8, 2026 11:35 PM UTC
- Jan 13, 2026 08:23 AM UTC