Class PivotFieldOptions
Allows specific fields associated with field information that needs to be displayed as aggregated numeric values in pivot table. The following configurations which are applicable are as follows:
Name
: Allows you to set the field name that needs to be displayed in row/column/value/filter axis of pivot table.
Caption
: Allows you to set caption to the specific field. It will be used to display instead of its name in pivot table component's UI.
Type
: Allows to display the values in the pivot table with appropriate aggregations such as sum, product, count, average, etc… Note: It is applicable only for relational data source.
BaseField
: Allows you to set the selective field, which used to display the values with either
DifferenceFrom or PercentageOfDifferenceFrom or PercentageOfParentTotal aggregate types. Note: It is applicable only for relational data source.
BaseItem
: Allows you to set the selective item of a specific field, which used to display the values with either DifferenceFrom or PercentageOfDifferenceFrom aggregate types.
The selective item should be set the from field specified in the baseField property. Note: It is applicable only for relational data source.
IsCalculatedField
: Allows to set whether the specified field is a calculated field or not.
In general, the calculated field is created from the bound data source or using simple formula with basic arithmetic operators in the pivot table. Note: It is applicable only for OLAP data source.
ShowRemoveIcon
: Allows you to show or hide the remove icon of a specific field that used to be displayed in the pivot button of the grouping bar and field list UI.
This remove icon is used to remove the specified field during runtime.
ShowValueTypeIcon
: Allows you to show or hide the value type icon of a specific field that used to be displayed in the pivot button of the grouping bar and field list UI.
This value type icon helps to select the appropriate aggregation type to specified value field at runtime.
ShowEditIcon
: Allows you to show or hide the edit icon of a specific field that used to be displayed on the pivot button of the grouping bar and field list UI.
This edit icon is used to modify caption, formula, and format of a specified calculated field at runtime that to be displayed in the pivot table.
AllowDragAndDrop
: Allows you to restrict the specific field's pivot button that is used to drag on runtime in the grouping bar and field list UI.
ExpandAll
: Allows you to expand or collapse all of the pivot table's headers for a specific field.
This will prevent you from modifying the current report.
Inheritance
Namespace: Syncfusion.Blazor.PivotView
Assembly: Syncfusion.Blazor.dll
Syntax
public class PivotFieldOptions : OwningComponentBase
Constructors
PivotFieldOptions()
Declaration
public PivotFieldOptions()
Properties
AllowDragAndDrop
Allows you to restrict the specific field's pivot button that is used to drag on runtime in the grouping bar and field list UI. This will prevent you from modifying the current report.
Declaration
public bool AllowDragAndDrop { get; set; }
Property Value
Type |
---|
System.Boolean |
Axis
Allows you to set the axis name to the specific field. This will help to display the field in specified axis such as row/column/value/filter axis of pivot table.
Declaration
public string Axis { get; set; }
Property Value
Type |
---|
System.String |
BaseField
Allows you to set the selective field, which used to display the values with either DifferenceFrom or PercentageOfDifferenceFrom or PercentageOfParentTotal aggregate types.
It is applicable only for relational data source.
Declaration
public string BaseField { get; set; }
Property Value
Type |
---|
System.String |
BaseItem
Allows you to set the selective item of a specific field, which used to display the values with either DifferenceFrom or PercentageOfDifferenceFrom aggregate types. The selective item should be set the from field specified in the baseField property.
It is applicable only for relational data source.
Declaration
public string BaseItem { get; set; }
Property Value
Type |
---|
System.String |
Caption
Allows you to set caption to the specific field. It will be used to display instead of its name in pivot table component's UI.
Declaration
public string Caption { get; set; }
Property Value
Type |
---|
System.String |
ExpandAll
Allows you to expand or collapse all of the pivot table's headers for a specific field. By default, all the headers are collapsed in the pivot table.
It is applicable only for relational data.
Declaration
public bool ExpandAll { get; set; }
Property Value
Type |
---|
System.Boolean |
IsCalculatedField
Allows to set whether the specified field is a calculated field or not. In general, a calculated field is created from the bound data source or using simple formula with basic arithmetic operators in the pivot table.
This option is applicable only for OLAP data source.
Declaration
public bool IsCalculatedField { get; set; }
Property Value
Type |
---|
System.Boolean |
IsNamedSet
Allows you to set whether the specified field is a named set or not. In general, the named set is a set of dimension members or a set expression (MDX query) to be created as a dimension in the SSAS OLAP cube itself.
It is applicable only for OLAP data source.
Declaration
public bool IsNamedSet { get; set; }
Property Value
Type |
---|
System.Boolean |
Name
Allows you to set the field name that needs to be displayed in row/column/value/filter axis of pivot table.
Declaration
public string Name { get; set; }
Property Value
Type |
---|
System.String |
ShowEditIcon
Allows you to show or hide the edit icon of a specific field that used to be displayed on the pivot button of the grouping bar and field list UI. This edit icon is used to modify caption, formula, and format of a specified calculated field at runtime that to be displayed in the pivot table.
Declaration
public bool ShowEditIcon { get; set; }
Property Value
Type |
---|
System.Boolean |
ShowFilterIcon
Allows you to show or hide the filter icon of a specific field that used to be displayed on the pivot button of the grouping bar and field list UI. This filter icon is used to filter the members of a specified field at runtime in the pivot table.
Declaration
public bool ShowFilterIcon { get; set; }
Property Value
Type |
---|
System.Boolean |
ShowNoDataItems
Allows you to display all members items of a specific field to the pivot table, even doesn't have any data in its row/column intersection in data source.
It is applicable only for relational data source.
Declaration
public bool ShowNoDataItems { get; set; }
Property Value
Type |
---|
System.Boolean |
ShowRemoveIcon
Allows you to show or hide the remove icon of a specific field that used to be displayed in the pivot button of the grouping bar and field list UI. This remove icon is used to remove the specified field during runtime.
Declaration
public bool ShowRemoveIcon { get; set; }
Property Value
Type |
---|
System.Boolean |
ShowSortIcon
Allows you to show or hide the sort icon of a specific field that used to be displayed in the pivot button of the grouping bar and field list UI. This sort icon is used to order members of a specified field either in ascending or descending at runtime.
Declaration
public bool ShowSortIcon { get; set; }
Property Value
Type |
---|
System.Boolean |
ShowSubTotals
Allows to show or hide sub-totals to a specific field in row/column axis of the pivot table.
Declaration
public bool ShowSubTotals { get; set; }
Property Value
Type |
---|
System.Boolean |
ShowValueTypeIcon
Allows you to show or hide the value type icon of a specific field that used to be displayed in the pivot button of the grouping bar and field list UI. This value type icon helps to select the appropriate aggregation type to specified value field at runtime.
Declaration
public bool ShowValueTypeIcon { get; set; }
Property Value
Type |
---|
System.Boolean |
Type
Allows to display the values in the pivot table with appropriate aggregations such as sum, product, count, average, etc… The available types are,
Sum
: Allows to display the pivot table values with sum.
Product
: Allows to display the pivot table values with product.
Count
: Allows to display the pivot table values with count.
DistinctCount
: Allows to display the pivot table values with distinct count.
Min
: Allows to display the pivot table with minimum value.
Max
: Allows to display the pivot table with maximum value.
Avg
: Allows to display the pivot table values with average.
Index
: Allows to display the pivot table values with index.
PopulationStDev
: Allows to display the pivot table values with population standard deviation.
SampleStDev
: Allows to display the pivot table values with sample standard deviation.
PopulationVar
: Allows to display the pivot table values with population variance.
SampleVar
: Allows to display the pivot table values with sample variance.
RunningTotals
: Allows to display the pivot table values with running totals.
DifferenceFrom
: Allows to display the pivot table values with difference from the value of the base item in the base field.
PercentageOfDifferenceFrom
: Allows to display the pivot table values with percentage difference from the value of the base item in the base field.
PercentageOfGrandTotal
: Allows to display the pivot table values with percentage of grand total of all values.
PercentageOfColumnTotal
: Allows to display the pivot table values in each column with percentage of total values for the column.
PercentageOfRowTotal
: Allows to display the pivot table values in each row with percentage of total values for the row.
PercentageOfParentTotal
: Allows to display the pivot table values with percentage of total of all values based on selected field.
PercentageOfParentColumnTotal
: Allows to display the pivot table values with percentage of its parent total in each column.
PercentageOfParentRowTotal
: Allows to display the pivot table values with percentage of its parent total in each row.
CalculatedField
: Allows to display the pivot table with calculated field values. It allows user to create a new calculated field alone.
Declaration
public SummaryTypes Type { get; set; }
Property Value
Type |
---|
SummaryTypes |