Browse Source
Fixes the use of DataGrid Template Contexts for ExtraProperties
pull/25466/head
Carlos Varela
4 days ago
committed by
maliming
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
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)) |
|
|
|
|