Skip to content

Commit

Permalink
Add AutoGenerateColumns to prevent auto-generated columns
Browse files Browse the repository at this point in the history
  • Loading branch information
realLiangshiwei committed Mar 27, 2024
1 parent 83ab93c commit b043d62
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 @@ -159,5 +159,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 b043d62

Please sign in to comment.