Browse Source
Merge pull request #25467 from abpframework/auto-merge/rel-10-3/4580
Merge branch rel-10.4 with rel-10.3
pull/25468/head
Volosoft Agent
5 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
framework/src/Volo.Abp.BlazoriseUI/Components/AbpExtensibleDataGrid.razor
|
|
|
@ -122,7 +122,7 @@ |
|
|
|
<DataGridColumn TItem="TItem" Field="@nameof(IHasExtraProperties.ExtraProperties)" SortField="@column.PropertyName" Width="@BlazoriseFluentSizingParse.Parse(column.Width, SizingType.Width)" Caption="@column.Title" Displayable="column.Visible" Sortable="@column.Sortable"> |
|
|
|
<DisplayTemplate> |
|
|
|
@{ |
|
|
|
var entity = context as IHasExtraProperties; |
|
|
|
var entity = context.Item as IHasExtraProperties; |
|
|
|
var propertyName = ExtensionPropertiesRegex.Match(column.Data).Groups[1].Value; |
|
|
|
var propertyValue = entity?.GetProperty(propertyName); |
|
|
|
if (propertyValue != null && propertyValue.GetType() == typeof(bool)) |
|
|
|
|