Class RadzenPivotAggregate<TItem>
RadzenPivotAggregate component. Must be placed inside a RadzenPivotDataGrid<TItem>
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public class RadzenPivotAggregate<TItem> : RadzenPivotField<TItem>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Type Parameters
| Name | Description |
|---|---|
| TItem | The type of the PivotDataGrid item. |
Constructors
RadzenPivotAggregate()
RadzenPivotAggregate component. Must be placed inside a RadzenPivotDataGrid<TItem>
Declaration
public RadzenPivotAggregate()
Properties
Aggregate
Gets or sets the aggregate function.
Declaration
[Parameter]
public AggregateFunction Aggregate { get; set; }
Property Value
| Type | Description |
|---|---|
| AggregateFunction |
ColumnTotalTemplate
Gets or sets the column total template rendered in the column footer.
Declaration
[Parameter]
public RenderFragment<object> ColumnTotalTemplate { get; set; }
Property Value
| Type | Description |
|---|---|
| RenderFragment<dynamic> |
FormatProvider
Gets or sets the IFormatProvider used for FormatString.
Declaration
[Parameter]
public IFormatProvider FormatProvider { get; set; }
Property Value
| Type | Description |
|---|---|
| IFormatProvider |
FormatString
Gets or sets the format string.
Declaration
[Parameter]
public string FormatString { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
HeaderTemplate
Gets or sets the header template.
Declaration
[Parameter]
public RenderFragment HeaderTemplate { get; set; }
Property Value
| Type | Description |
|---|---|
| RenderFragment | The header template. |
RowTotalTemplate
Gets or sets the column total template rendered in the column footer.
Declaration
[Parameter]
public RenderFragment<RadzenPivotAggreateContext<TItem>> RowTotalTemplate { get; set; }
Property Value
| Type | Description |
|---|---|
| RenderFragment<RadzenPivotAggreateContext<TItem>> |
Template
Gets or sets the column cell template rendered.
Declaration
[Parameter]
public RenderFragment<object> Template { get; set; }
Property Value
| Type | Description |
|---|---|
| RenderFragment<dynamic> |
TextAlign
Gets or sets the text align.
Declaration
[Parameter]
public TextAlign TextAlign { get; set; }
Property Value
| Type | Description |
|---|---|
| TextAlign |
Methods
BuildRenderTree(RenderTreeBuilder)
RadzenPivotAggregate component. Must be placed inside a RadzenPivotDataGrid<TItem>
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
| Type | Name | Description |
|---|---|---|
| RenderTreeBuilder | __builder |
Overrides
Dispose()
Disposes the component and removes it from the parent pivot grid.
Declaration
public override void Dispose()
Overrides
FormatValue(object)
Formats a value using the FormatString and FormatProvider.
Declaration
public string FormatValue(object value)
Parameters
| Type | Name | Description |
|---|---|---|
| object | value |
Returns
| Type | Description |
|---|---|
| string |
OnInitialized()
Called when the component is initialized. Registers this value with the parent pivot grid.
Declaration
protected override void OnInitialized()