DataGrid column UniqueID initialization fixed

This commit is contained in:
Vladimir Enchev
2026-01-15 18:08:38 +02:00
parent de8dfb7e93
commit 98e8393d14

View File

@@ -243,9 +243,9 @@ namespace Radzen.Blazor
}
if (!string.IsNullOrEmpty(Property) && !string.IsNullOrEmpty(FilterProperty))
UniqueID ??= $"{Property}.{FilterProperty}"; // To be sure the column uniqueID is unique even when filtering on sub property.
UniqueID = $"{Property}.{FilterProperty}"; // To be sure the column uniqueID is unique even when filtering on sub property.
else
UniqueID ??= Property ?? FilterProperty;
UniqueID = !string.IsNullOrEmpty(Property) ? Property : FilterProperty;
if (UseDisplayName && !string.IsNullOrEmpty(Property))
{