DataGrid should not call LoadData twice on first render when virtualized

This commit is contained in:
Vladimir Enchev
2023-09-13 10:13:36 +03:00
parent 0e4f942b15
commit 5995eb8b8e

View File

@@ -2033,7 +2033,7 @@ namespace Radzen.Blazor
{
if (firstRender && Visible && (LoadData.HasDelegate && Data == null) && IsVirtualizationAllowed())
{
await InvokeLoadData(skip, PageSize);
Data = Enumerable.Empty<TItem>().Append(default(TItem));
}
else if(settings == null)
{