mirror of
https://github.com/radzenhq/radzen-blazor.git
synced 2026-02-04 05:35:44 +00:00
DataGrid should not call Count() more than once
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user