RadzenPivotDataGrid component for creating pivot tables with cross-tabulation functionality.
IComponent
IHandleEvent
IHandleAfterRender
PagedDataBoundComponent<TItem>.OnCollectionChanged
PagedDataBoundComponent<TItem>.Dispose
PagedDataBoundComponent<TItem>.SetParametersAsync
PagedDataBoundComponent<TItem>.OnParametersSetAsync
PagedDataBoundComponent<TItem>.OnAfterRenderAsync
PagedDataBoundComponent<TItem>.OnPageChanged
PagedDataBoundComponent<TItem>.OnPageSizeChanged
PagedDataBoundComponent<TItem>.CalculatePager
PagedDataBoundComponent<TItem>.GoToPage
PagedDataBoundComponent<TItem>.FirstPage
PagedDataBoundComponent<TItem>.PrevPage
PagedDataBoundComponent<TItem>.NextPage
PagedDataBoundComponent<TItem>.LastPage
PagedDataBoundComponent<TItem>.PagerPosition
PagedDataBoundComponent<TItem>.PagerAlwaysVisible
PagedDataBoundComponent<TItem>.PagerHorizontalAlign
PagedDataBoundComponent<TItem>.Density
PagedDataBoundComponent<TItem>.AllowPaging
PagedDataBoundComponent<TItem>.PageSize
PagedDataBoundComponent<TItem>.PageNumbersCount
PagedDataBoundComponent<TItem>.Count
PagedDataBoundComponent<TItem>.CurrentPage
PagedDataBoundComponent<TItem>.Template
PagedDataBoundComponent<TItem>.LoadingTemplate
PagedDataBoundComponent<TItem>.Data
PagedDataBoundComponent<TItem>.PageSizeOptions
PagedDataBoundComponent<TItem>.PageSizeText
PagedDataBoundComponent<TItem>.ShowPagingSummary
PagedDataBoundComponent<TItem>.PagingSummaryFormat
PagedDataBoundComponent<TItem>.PagingSummaryTemplate
PagedDataBoundComponent<TItem>.FirstPageTitle
PagedDataBoundComponent<TItem>.FirstPageAriaLabel
PagedDataBoundComponent<TItem>.PrevPageLabel
PagedDataBoundComponent<TItem>.PrevPageTitle
PagedDataBoundComponent<TItem>.PrevPageAriaLabel
PagedDataBoundComponent<TItem>.LastPageTitle
PagedDataBoundComponent<TItem>.LastPageAriaLabel
PagedDataBoundComponent<TItem>.NextPageLabel
PagedDataBoundComponent<TItem>.NextPageTitle
PagedDataBoundComponent<TItem>.NextPageAriaLabel
PagedDataBoundComponent<TItem>.PageTitleFormat
PagedDataBoundComponent<TItem>.PageAriaLabelFormat
PagedDataBoundComponent<TItem>.PagedView
PagedDataBoundComponent<TItem>.LoadData
PagedDataBoundComponent<TItem>.Page
PagedDataBoundComponent<TItem>.skip
PagedDataBoundComponent<TItem>.topPager
PagedDataBoundComponent<TItem>.bottomPager
RadzenComponent.RaiseContextMenu
RadzenComponent.RaiseMouseEnter
RadzenComponent.AddContextMenu
RadzenComponent.RaiseMouseLeave
RadzenComponent.OnBecameInvisible
RadzenComponent.DefaultCulture
RadzenComponent.IsJSRuntimeAvailable
ComponentBase.OnInitializedAsync
ComponentBase.OnParametersSet
ComponentBase.StateHasChanged
ComponentBase.ShouldRender
ComponentBase.OnAfterRender
ComponentBase.InvokeAsync
ComponentBase.DispatchExceptionAsync
ComponentBase.RendererInfo
ComponentBase.Assets
ComponentBase.AssignedRenderMode
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
public class RadzenPivotDataGrid<TItem> : PagedDataBoundComponent<TItem>, IComponent, IHandleEvent, IHandleAfterRender| Name | Description |
|---|---|
| TItem | The type of the PivotDataGrid data item. |
<RadzenPivotDataGrid @data=@orders TItem="Order" AllowSorting="true" AllowPaging="true" AllowFiltering="true">
<Columns>
<RadzenPivotColumn TItem="Order" Property="Category" Title="Category" />
<RadzenPivotColumn TItem="Order" Property="Region" Title="Region" />
</Columns>
<Rows>
<RadzenPivotRow TItem="Order" Property="Product" Title="Product" />
<RadzenPivotRow TItem="Order" Property="Year" Title="Year" />
</Rows>
<Aggregates>
<RadzenPivotAggregate TItem="Order" Property="Amount" Title="Amount" Aggregate="AggregateFunction.Sum" />
<RadzenPivotAggregate TItem="Order" Property="Quantity" Title="Quantity" Aggregate="AggregateFunction.Count" />
</Aggregates>
</RadzenPivotDataGrid>RadzenPivotDataGrid component for creating pivot tables with cross-tabulation functionality.
public RadzenPivotDataGrid<TItem>()Gets or sets the aggregates collection for pivot aggregates/measures.
public RenderFragment Aggregates { get; set; }
| Type | Description |
|---|---|
| RenderFragment | Gets or sets the aggregates collection for pivot aggregates/measures. |
Gets the aggregates collection.
public IList<RadzenPivotAggregate<TItem>> AggregatesCollection { get; }
| Type | Description |
|---|---|
| IList<RadzenPivotAggregate<TItem>> | Gets the aggregates collection. |
Gets or sets the Aggregates text.
public string AggregatesText { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the Aggregates text. |
Gets or sets a value indicating whether RadzenPivotDataGrid should use alternating row styles.
public bool AllowAlternatingRows { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether RadzenPivotDataGrid should use alternating row styles. |
Gets or sets a value indicating whether drill down functionality is enabled.
public bool AllowDrillDown { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether drill down functionality is enabled. |
Gets or sets a value indicating whether picking of fields runtime is allowed. Set to false by default.
public bool AllowFieldsPicking { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether picking of fields runtime is allowed. Set to false by default. |
Gets or sets whether to allow filter date input.
public bool AllowFilterDateInput { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets whether to allow filter date input. |
Gets or sets a value indicating whether filtering is enabled.
public bool AllowFiltering { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether filtering is enabled. |
Gets or sets a value indicating whether sorting is enabled.
public bool AllowSorting { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether sorting is enabled. |
Gets or sets the and operator text.
public string AndOperatorText { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the and operator text. |
Gets or sets the apply text.
public string ApplyText { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the apply text. |
Gets or sets the clear text.
public string ClearText { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the clear text. |
Gets or sets the columns collection for pivot columns.
public RenderFragment Columns { get; set; }
| Type | Description |
|---|---|
| RenderFragment | Gets or sets the columns collection for pivot columns. |
Gets the columns collection.
public IList<RadzenPivotColumn<TItem>> ColumnsCollection { get; }
| Type | Description |
|---|---|
| IList<RadzenPivotColumn<TItem>> | Gets the columns collection. |
Gets or sets the Columns text.
public string ColumnsText { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the Columns text. |
Gets or sets the contains text.
public string ContainsText { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the contains text. |
Gets or sets the custom filter operator text.
public string CustomText { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the custom filter operator text. |
Gets or sets the does not contain text.
public string DoesNotContainText { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the does not contain text. |
Gets or sets the empty template shown when Data is empty collection.
public RenderFragment EmptyTemplate { get; set; }
| Type | Description |
|---|---|
| RenderFragment | Gets or sets the empty template shown when Data is empty collection. |
Gets or sets the empty text shown when Data is empty collection.
public string EmptyText { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the empty text shown when Data is empty collection. |
Gets or sets the ends with text.
public string EndsWithText { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the ends with text. |
Gets or sets the enum filter select text.
public string EnumFilterSelectText { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the enum filter select text. |
Gets or sets the enum filter translation function.
public Func<object, string> EnumFilterTranslationFunc { get; set; }
| Type | Description |
|---|---|
| Func<object, string> | Gets or sets the enum filter translation function. |
Gets or sets the equals text.
public string EqualsText { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the equals text. |
Gets or sets value indicating if the fields picker is expanded.
public bool FieldsPickerExpanded { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets value indicating if the fields picker is expanded. |
Gets or sets the fields picker header template.
public RenderFragment FieldsPickerHeaderTemplate { get; set; }
| Type | Description |
|---|---|
| RenderFragment | Gets or sets the fields picker header template. |
Gets or sets the fields picker header text.
public string FieldsPickerHeaderText { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the fields picker header text. |
Gets or sets the filter case sensitivity.
public FilterCaseSensitivity FilterCaseSensitivity { get; set; }
| Type | Description |
|---|---|
| FilterCaseSensitivity | Gets or sets the filter case sensitivity. |
Gets or set the filter icon to use.
public string FilterIcon { get; set; }
| Type | Description |
|---|---|
| string | Gets or set the filter icon to use. |
Gets or sets the filter operator aria label.
public string FilterOperatorAriaLabel { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the filter operator aria label. |
Gets or sets the filter text.
public string FilterText { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the filter text. |
Gets or sets the filter value aria label.
public string FilterValueAriaLabel { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the filter value aria label. |
Gets or sets the greater than or equals text.
public string GreaterThanOrEqualsText { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the greater than or equals text. |
Gets or sets the greater than text.
public string GreaterThanText { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the greater than text. |
Gets or sets the grid lines style.
public DataGridGridLines GridLines { get; set; }
| Type | Description |
|---|---|
| DataGridGridLines | Gets or sets the grid lines style. |
Gets or sets the in operator text.
public string InText { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the in operator text. |
Gets or sets the is empty text.
public string IsEmptyText { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the is empty text. |
Gets or sets a value indicating whether this instance loading indicator is shown.
public bool IsLoading { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether this instance loading indicator is shown. |
Gets or sets the is not empty text.
public string IsNotEmptyText { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the is not empty text. |
Gets or sets the not null text.
public string IsNotNullText { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the not null text. |
Gets or sets the is null text.
public string IsNullText { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the is null text. |
Gets or sets the less than or equals text.
public string LessThanOrEqualsText { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the less than or equals text. |
Gets or sets the less than text.
public string LessThanText { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the less than text. |
Gets or sets the logical filter operator.
public LogicalFilterOperator LogicalFilterOperator { get; set; }
| Type | Description |
|---|---|
| LogicalFilterOperator | Gets or sets the logical filter operator. |
Gets or sets the logical operator aria label.
public string LogicalOperatorAriaLabel { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the logical operator aria label. |
Gets or sets the not equals text.
public string NotEqualsText { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the not equals text. |
Gets or sets the not in operator text.
public string NotInText { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the not in operator text. |
Gets or sets the or operator text.
public string OrOperatorText { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the or operator text. |
Gets or sets the rows collection for pivot rows.
public RenderFragment Rows { get; set; }
| Type | Description |
|---|---|
| RenderFragment | Gets or sets the rows collection for pivot rows. |
Gets the rows collection.
public IList<RadzenPivotRow<TItem>> RowsCollection { get; }
| Type | Description |
|---|---|
| IList<RadzenPivotRow<TItem>> | Gets the rows collection. |
Gets or sets the Rows text.
public string RowsText { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the Rows text. |
Gets or sets the second filter operator aria label.
public string SecondFilterOperatorAriaLabel { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the second filter operator aria label. |
Gets or sets the second filter value aria label.
public string SecondFilterValueAriaLabel { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the second filter value aria label. |
Gets or sets a value indicating whether to show column totals.
public bool ShowColumnsTotals { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether to show column totals. |
Gets or sets a value indicating whether to show row totals.
public bool ShowRowsTotals { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether to show row totals. |
Gets or sets the sort aria label format.
public string SortAriaLabelFormat { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the sort aria label format. |
Gets or sets the starts with text.
public string StartsWithText { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the starts with text. |
Override the View property to apply sorting and filtering.
public IQueryable<TItem> View { get; }
| Type | Description |
|---|---|
| IQueryable<TItem> | Override the View property to apply sorting and filtering. |
Adds a pivot aggregate to the pivot grid if it does not already exist.
public void AddPivotAggregate(RadzenPivotAggregate<TItem> aggregate)
| Type | Name | Description |
|---|---|---|
| RadzenPivotAggregate<TItem> | aggregate | The pivot aggregate to add. |
Adds a pivot column to the pivot grid if it does not already exist.
public void AddPivotColumn(RadzenPivotColumn<TItem> column)
| Type | Name | Description |
|---|---|---|
| RadzenPivotColumn<TItem> | column | The pivot column to add. |
Adds a pivot field to the pivot grid if it does not already exist.
public void AddPivotField(RadzenPivotField<TItem> field)
| Type | Name | Description |
|---|---|---|
| RadzenPivotField<TItem> | field | The pivot field to add. |
Adds a pivot row to the pivot grid if it does not already exist.
public void AddPivotRow(RadzenPivotRow<TItem> row)
| Type | Name | Description |
|---|---|---|
| RadzenPivotRow<TItem> | row | The pivot row to add. |
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
| Type | Name | Description |
|---|---|---|
| Rendering.RenderTreeBuilder | __builder |
Gets the aggregate value for a group, considering collapsed state.
public object GetAggregateValue(IQueryable<TItem> items, RadzenPivotAggregate<TItem> aggregate)
| Type | Name | Description |
|---|---|---|
| IQueryable<TItem> | items | The items to aggregate. |
| RadzenPivotAggregate<TItem> | aggregate | The aggregate configuration. |
| Type | Description |
|---|---|
| object | The aggregated value. |
protected override string GetComponentCssClass()
| Type | Description |
|---|---|
| string |
Gets the filter operator text.
public string GetFilterOperatorText(FilterOperator? filterOperator)
| Type | Name | Description |
|---|---|---|
| FilterOperator? | filterOperator |
| Type | Description |
|---|---|
| string |
Gets the table CSS class.
protected virtual string GetTableCssClass()
| Type | Description |
|---|---|
| string |
Renders pivot rows with real data aggregation and grouping.
protected virtual RenderFragment RenderPivotRows()
| Type | Description |
|---|---|
| RenderFragment |
Toggles the drill down state for a column group.
public Task ToggleColumnDrillDown(string pathKey)
| Type | Name | Description |
|---|---|---|
| string | pathKey | The path key identifying the column group. |
| Type | Description |
|---|---|
| Task |
Toggles the drill down state for a row group.
public Task ToggleRowDrillDown(string pathKey)
| Type | Name | Description |
|---|---|---|
| string | pathKey | The path key identifying the row group. |
| Type | Description |
|---|---|
| Task |