SfGrid.SetValuesRecursively Results in NullReferenceException

I am getting a null reference exception on SfGrid while persisting values:


Image_9314_1733142432559


When I look at HeaderText, it can be null:


Image_7660_1733142464215


Shouldn't there be a null check here?  Or a null propagation for e.HeaderText ?? e.Field ?


Thank you for any consideration.




3 Replies 1 reply marked as answer

PS Prathap Senthil Syncfusion Team December 3, 2024 08:20 AM UTC

Hi Mike-E,

Based on the reported problem, we have identified it as a known issue: “Error in SfGrid when EnablePersistence is enabled, occurring after a page refresh.” This issue has been resolved in today’s patch release, version 27.2.5.We recommend upgrading to the latest version of the Syncfusion NuGet package to address the reported issue. Please find the NuGet package for the latest fixes and features below.

NuGet: https://www.nuget.org/packages/Syncfusion.Blazor.Grid

Regards,
Prathap S


Marked as answer

MI Mike-E December 3, 2024 10:59 AM UTC

Wow!  Fast!  Thank you very much for your quick resolution and support Prathap and team. 🙏



VN Vignesh Natarajan Syncfusion Team December 4, 2024 05:10 AM UTC

Hi Mike-E,


Thanks for the update.


Please get back to us if you have further queries.


Regards,

Vignesh Natarajan


Loader.
Up arrow icon