# RadzenPivotAggregate<TItem> Class

RadzenPivotAggregate component. Must be placed inside a [RadzenPivotDataGrid<T>](https://blazor.radzen.com/docs/api/Radzen.Blazor.RadzenPivotDataGrid-1.md)

Namespace: [Radzen.Blazor](https://blazor.radzen.com/docs/api/Radzen.Blazor.md)

Assembly: Radzen.Blazor.dll

## Inheritance

- Object
- ComponentBase
- [RadzenPivotField<TItem>](https://blazor.radzen.com/docs/api/Radzen.Blazor.RadzenPivotField-1.md)
- RadzenPivotAggregate<TItem>

## Implements

- IComponent
- IHandleEvent
- IHandleAfterRender

## Syntax

```csharp
public class RadzenPivotAggregate<TItem> : RadzenPivotField<TItem>, IComponent, IHandleEvent, IHandleAfterRender
```

## Type Parameters

| Name | Description |
|------|-------------|
| TItem | The type of the PivotDataGrid item. |

## Constructors

| Constructor | Description |
|-------------|-------------|
| `public RadzenPivotAggregate<TItem>()` | RadzenPivotAggregate component. Must be placed inside a [RadzenPivotDataGrid<T>](https://blazor.radzen.com/docs/api/Radzen.Blazor.RadzenPivotDataGrid-1.md) |

## Properties

| Property | Type | Description |
|------|------|-------------|
| Aggregate | [`AggregateFunction`](https://blazor.radzen.com/docs/api/Radzen.AggregateFunction.md) | Gets or sets the aggregate function. |
| ColumnTotalTemplate | `RenderFragment<object>` | Gets or sets the column total template rendered in the column footer. |
| FormatProvider | `IFormatProvider` | Gets or sets the IFormatProvider used for FormatString. |
| FormatString | `string` | Gets or sets the format string. |
| HeaderTemplate | `RenderFragment` | Gets or sets the header template. |
| RowTotalTemplate | `RenderFragment<RadzenPivotAggreateContext<TItem>>` | Gets or sets the column total template rendered in the column footer. |
| Template | `RenderFragment<object>` | Gets or sets the column cell template rendered. |
| TextAlign | [`TextAlign`](https://blazor.radzen.com/docs/api/Radzen.TextAlign.md) | Gets or sets the text align. |

## Methods

| Method | Returns | Description |
|------|---------|-------------|
| `BuildRenderTree(Rendering.RenderTreeBuilder __builder)` | `void` |  |
| `Dispose()` | `void` | Disposes the component and removes it from the parent pivot grid. |
| `FormatValue(object value)` | `string` | Formats a value using the FormatString and FormatProvider. |
| `OnInitialized()` | `void` | Called when the component is initialized. Registers this value with the parent pivot grid. |

## Inherited Members

- From [RadzenPivotField<TItem>](https://blazor.radzen.com/docs/api/Radzen.Blazor.RadzenPivotField-1.md): FilterOperator, FilterPropertyType, FilterTemplate, FilterValue, FilterValueTemplate, Filterable, GetFilterOperator, GetFilterProperty, GetFilterValue, GetLogicalFilterOperator, GetSecondFilterOperator, GetSecondFilterValue, GetSortOrder, GetTitle, HasActiveFilter, LogicalFilterOperator, PivotGrid, Property, SecondFilterOperator, SecondFilterValue, SecondFilterValueTemplate, Selected, SetFilterOperator, SetFilterValue, SetLogicalFilterOperator, SetParametersAsync, SetSecondFilterOperator, ShowUpDownForNumericFilter, SortOrder, SortOrderSequence, Sortable, Title, Type
- From ComponentBase: Assets, AssignedRenderMode, DispatchExceptionAsync, InvokeAsync, OnAfterRender, OnAfterRenderAsync, OnInitializedAsync, OnParametersSet, OnParametersSetAsync, RendererInfo, ShouldRender, StateHasChanged

