Skip to content

Commit

Permalink
DataGrid will not render colgroup if there are child columns
Browse files Browse the repository at this point in the history
Fix #1674
  • Loading branch information
enchev committed Sep 5, 2024
1 parent 174f0a9 commit 56cb173
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Radzen.Blazor/RadzenDataGrid.razor
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@

<div class="rz-data-grid-data" tabindex="-1">
<table class="rz-grid-table rz-grid-table-fixed @(AllowAlternatingRows ? "rz-grid-table-striped" : "") @(allColumns.Any(c => c.Parent != null) ? "rz-grid-table-composite" : "") @(getGridLinesCSSClass())">
@if(allColumns.All(c => c.Parent == null))
{
<colgroup>
@if (ShowGroupExpandColumn)
{
Expand All @@ -100,6 +102,7 @@
<col id=@(getColumnUniqueId(visibleColumns.IndexOf(column)) + "-col") style="@column.GetStyle(false, false, true)">
}
</colgroup>
}
<thead>
@for (var i = 0; i < deepestChildColumnLevel + 1; i++)
{
Expand Down

0 comments on commit 56cb173

Please sign in to comment.