From a06fb47d45d17d447e271e79495337dacb906c2b Mon Sep 17 00:00:00 2001 From: Ilkay Ilknur Date: Tue, 26 Jan 2021 12:58:29 +0300 Subject: [PATCH] show icon when displaying boolean properties. --- .../Components/AbpExtensibleDataGrid.razor | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/framework/src/Volo.Abp.BlazoriseUI/Components/AbpExtensibleDataGrid.razor b/framework/src/Volo.Abp.BlazoriseUI/Components/AbpExtensibleDataGrid.razor index 0bc49f6b4f..8632412d94 100644 --- a/framework/src/Volo.Abp.BlazoriseUI/Components/AbpExtensibleDataGrid.razor +++ b/framework/src/Volo.Abp.BlazoriseUI/Components/AbpExtensibleDataGrid.razor @@ -67,7 +67,21 @@ var entity = context as IHasExtraProperties; var propertyName = ExtensionPropertiesRegex.Match(column.Data).Groups[1].Value; var propertyValue = entity.GetProperty(propertyName); - @(propertyValue) + if (propertyValue.GetType() == typeof(bool)) + { + if ((bool)propertyValue) + { + + } + else + { + + } + } + else + { + @(propertyValue) + } }