Issue with async LoadData and AllowVirtualization for RadzenDataGrid #424

Closed
opened 2026-01-29 17:37:05 +00:00 by claunia · 0 comments
Owner

Originally created by @dustinrowland12 on GitHub (Jun 2, 2022).

I have a RadzenDataGrid and am attempting to use an async LoadData call to an API controller. It seems to get stuck in an infinite loop on the await in my async LoadData handler.

image

image

image

image

I did confirm that the code reaches the PetController.GetAll method just fine.

It's worth noting I can use the OnInitializedAsync to set my pets property on initial load asynchronously with no issues (that's how I started before switching to the LoadData handler). If I remove the OnInitializedAsync and wire up an async LoadData event handler, it just seems to get stuck and I end up with several requests in my network tab. The page also becomes responsive. This seems to coincide with a few other issues that have been closed in GitHub.

One final note - this ONLY happens when I specify AllowVirtualization="true" in the RadzenDataGrid.

This is using .NET 6.0 with Blazor WebAssembly and Radzen.Blazor 3.18.13.

Originally created by @dustinrowland12 on GitHub (Jun 2, 2022). I have a RadzenDataGrid and am attempting to use an async LoadData call to an API controller. It seems to get stuck in an infinite loop on the await in my async LoadData handler. ![image](https://user-images.githubusercontent.com/1831434/171866423-542767b0-2c72-4906-ac94-813b1c15c835.png) ![image](https://user-images.githubusercontent.com/1831434/171742002-6d71ad0e-8fc2-4d32-99ef-b3cb20491648.png) ![image](https://user-images.githubusercontent.com/1831434/171742840-3f68757b-50cb-4588-810d-1d7c16e42943.png) ![image](https://user-images.githubusercontent.com/1831434/171741320-c1ef2ea6-4211-4b7a-b7f7-4e7b220d61b2.png) I did confirm that the code reaches the PetController.GetAll method just fine. It's worth noting I can use the OnInitializedAsync to set my pets property on initial load asynchronously with no issues (that's how I started before switching to the LoadData handler). If I remove the OnInitializedAsync and wire up an async LoadData event handler, it just seems to get stuck and I end up with several requests in my network tab. The page also becomes responsive. This seems to coincide with a few other issues that have been closed in GitHub. One final note - this ONLY happens when I specify AllowVirtualization="true" in the RadzenDataGrid. This is using .NET 6.0 with Blazor WebAssembly and Radzen.Blazor 3.18.13.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#424