DataGrid should not call Count() more than once

This commit is contained in:
Vladimir Enchev
2026-01-07 09:11:33 +02:00
parent 273ba0381f
commit 34fce5188f

View File

@@ -2213,15 +2213,7 @@ namespace Radzen.Blazor
if (Data != null && !LoadData.HasDelegate)
{
#if NET10_0_OR_GREATER
var count = View.Count();
if (count != Count)
{
Count = count;
}
#else
Count = 1;
#endif
}
if (AllowVirtualization)