RadzenDataGrid endless calling LoadData #372

Closed
opened 2026-01-29 17:36:14 +00:00 by claunia · 2 comments
Owner

Originally created by @ghost on GitHub (Apr 13, 2022).

Describe the bug
RadzenDataGrid calls the loadData method endlessly and browser tab is not response when I use virtualization and pass to the Data a collection (Items) that is null. In arguments, Skip is always 0 and top is Always 10. My method LoadData is asynchronous.

To Reproduce
My code example:
<RadzenDataGrid @ref="Grid" TItem="Item" Data="@Items" AllowColumnResize="true" Count="@TotalCount" AllowVirtualization="true" LoadData="@LoadData" SelectionMode="DataGridSelectionMode.Single" @bind-Value="@SelectedItem">

Desktop (please complete the following information):

  • OS: windows 10
  • Browser: chrome,
  • Version 3.18.2
Originally created by @ghost on GitHub (Apr 13, 2022). **Describe the bug** RadzenDataGrid calls the loadData method endlessly and browser tab is not response when I use virtualization and pass to the Data a collection (Items) that is null. In arguments, Skip is always 0 and top is Always 10. My method LoadData is asynchronous. **To Reproduce** My code example: `<RadzenDataGrid @ref="Grid" TItem="Item" Data="@Items" AllowColumnResize="true" Count="@TotalCount" AllowVirtualization="true" LoadData="@LoadData" SelectionMode="DataGridSelectionMode.Single" @bind-Value="@SelectedItem">` **Desktop (please complete the following information):** - OS: windows 10 - Browser: chrome, - Version 3.18.2
Author
Owner

@enchev commented on GitHub (Apr 14, 2022):

I'm afraid that this code is not enough to reproduce the problem.

@enchev commented on GitHub (Apr 14, 2022): I'm afraid that this code is not enough to reproduce the problem.
Author
Owner

@andylippitt commented on GitHub (Nov 17, 2023):

I think I can explain this one:
When Virtualization=true, then the LoadData method is called requesting overscan pages. If the method is async, and not awaited by the grid, then which response is in the bound data is undetermined because of the race condition.

@andylippitt commented on GitHub (Nov 17, 2023): I think I can explain this one: When Virtualization=true, then the LoadData method is called requesting overscan pages. If the method is async, and not awaited by the grid, then which response is in the bound data is undetermined because of the race condition.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#372