OnAfterRenderAsync Error Got As Rendom On Latest Version

He'll,

we start a project in .net 5.0 with blazor, but i have got a below error using 

SfGrid,

when i open this page as the first time it's working properly but go out author page then return again then i will got this error



[2021-07-14T15:39:51.297Z] Error: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')

   at Syncfusion.Blazor.Grids.SfGrid`1.PersistProperties(String properties)

   at Syncfusion.Blazor.Grids.SfGrid`1.PersistProperties(String properties)

   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)


Attachment: Screenshot_20210714_211755_dceddb6e.zip

1 Reply

JP Jeevakanth Palaniappan Syncfusion Team July 15, 2021 01:18 PM UTC

Hi Hiren, 

Greetings from Syncfusion support. 

We have checked your query and we have prepared a sample based on the shared code but unfortunately we are unable to reproduce the reported problem from our end. Please find the validated sample below for your reference. 


Incase if you are still facing the reported problem then kindly share us the below details. 

  1. Kindly share us the full grid code.
  2. Share us the runnable issue reproducing sample or reproduce the sample in the above provided sample.

The above requested details will be helpful for us to validate the problem and to provide you with a better solution as early as possible. 

Regards, 
Jeevakanth SP. 


Loader.
Up arrow icon