Browse Source
Merge pull request #19436 from abpframework/liangshiwei/blazorisefix
Add AutoGenerateColumns to prevent auto-generated columns
pull/19443/head
oykuermann
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
6 additions and
0 deletions
-
framework/src/Volo.Abp.BlazoriseUI/Components/AbpExtensibleDataGrid.razor
-
framework/src/Volo.Abp.BlazoriseUI/Components/AbpExtensibleDataGrid.razor.cs
|
|
@ -161,5 +161,9 @@ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
@if (!AutoGenerateColumns) |
|
|
|
|
|
{ |
|
|
|
|
|
<DataGridColumn Displayable="false"/> |
|
|
|
|
|
} |
|
|
</DataGridColumns> |
|
|
</DataGridColumns> |
|
|
</DataGrid> |
|
|
</DataGrid> |
|
|
|
|
|
@ -35,6 +35,8 @@ public partial class AbpExtensibleDataGrid<TItem> : ComponentBase |
|
|
[Parameter] public string? Class { get; set; } |
|
|
[Parameter] public string? Class { get; set; } |
|
|
|
|
|
|
|
|
[Parameter] public bool Responsive { get; set; } |
|
|
[Parameter] public bool Responsive { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
[Parameter] public bool AutoGenerateColumns { get; set; } |
|
|
|
|
|
|
|
|
[Inject] |
|
|
[Inject] |
|
|
public IStringLocalizerFactory StringLocalizerFactory { get; set; } = default!; |
|
|
public IStringLocalizerFactory StringLocalizerFactory { get; set; } = default!; |
|
|
|