Welcome to the Blazor feedback portal. We’re happy you’re here! If you have feedback on how to improve the Blazor, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
If you´re using the persitated functions in SfGrid component this will raise an exception if the count of columns changed (e.g. code changes or after permission changes).
If the column count do not match the persitated column count anymore this should reset the persistation but not crashes the app unhandled.
Browser exception:
Error: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')
at System.Collections.Generic.List`1.get_Item(Int32 index)
at Syncfusion.Blazor.Grids.SfGrid`1.PersistProperties(String properties, Boolean isResetPersistData)
at Syncfusion.Blazor.Grids.SfGrid`1.PersistProperties(String properties, Boolean isResetPersistData)
at Syncfusion.Blazor.Grids.SfGrid`1.OnAfterScriptRendered()
at Syncfusion.Blazor.SfBaseComponent.OnAfterRenderAsync(Boolean firstRender)
at Syncfusion.Blazor.SfDataBoundComponent.OnAfterRenderAsync(Boolean firstRender)
at Syncfusion.Blazor.Grids.SfGrid`1.OnAfterRenderAsync(Boolean firstRender)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
If columns has been changed persistation state is no longer useful and should be reset.
To reproduce: