Skip to content

Commit

Permalink
Merge pull request #19436 from abpframework/liangshiwei/blazorisefix
Browse files Browse the repository at this point in the history
Add AutoGenerateColumns to prevent auto-generated columns
  • Loading branch information
oykuermann authored Mar 28, 2024
2 parents cbe92fa + b043d62 commit d68d3ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,5 +161,9 @@
}
}
}
@if (!AutoGenerateColumns)
{
<DataGridColumn Displayable="false"/>
}
</DataGridColumns>
</DataGrid>
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ public partial class AbpExtensibleDataGrid<TItem> : ComponentBase
[Parameter] public string? Class { get; set; }

[Parameter] public bool Responsive { get; set; }

[Parameter] public bool AutoGenerateColumns { get; set; }

[Inject]
public IStringLocalizerFactory StringLocalizerFactory { get; set; } = default!;
Expand Down

0 comments on commit d68d3ec

Please sign in to comment.