diff --git a/AyCode.Blazor.Components/Components/Grids/MgGridDataColumn.cs b/AyCode.Blazor.Components/Components/Grids/MgGridDataColumn.cs index a0083c2..93b0746 100644 --- a/AyCode.Blazor.Components/Components/Grids/MgGridDataColumn.cs +++ b/AyCode.Blazor.Components/Components/Grids/MgGridDataColumn.cs @@ -78,9 +78,12 @@ public class MgGridDataColumn : DxGridDataColumn internal static string BuildUrlFromTemplate(string template, object? dataItem) { if (dataItem == null) return template; + return Regex.Replace(template, "{([^}]+)}", match => { var propName = match.Groups[1].Value; + + //TODO: delegate-et kéne használni és cache-elni egy dictionary-ba! - J. var prop = dataItem.GetType().GetProperty(propName); if (prop != null) {