Skip to content

Commit 2218eef

Browse files
authored
RadzenPivotDataGrid AddPivotAggregate exposed (#2371)
1 parent 666d33d commit 2218eef

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Radzen.Blazor/RadzenPivotDataGrid.razor.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -735,8 +735,12 @@ public void AddPivotRow(RadzenPivotRow<TItem> row)
735735
StateHasChanged();
736736
}
737737
}
738-
739-
internal void AddPivotAggregate(RadzenPivotAggregate<TItem> aggregate)
738+
739+
/// <summary>
740+
/// Adds a pivot aggregate to the pivot grid if it does not already exist.
741+
/// </summary>
742+
/// <param name="aggregate">The pivot aggregate to add.</param>
743+
public void AddPivotAggregate(RadzenPivotAggregate<TItem> aggregate)
740744
{
741745
if (!allPivotAggregates.Contains(aggregate))
742746
{
@@ -2214,4 +2218,4 @@ async Task UpdateFieldsFromSelected()
22142218
await Reload();
22152219
}
22162220
}
2217-
}
2221+
}

0 commit comments

Comments
 (0)