Value Sorting in EJ 1 Angular PivotGrid
28 Sep 2017 / 1 minute to read
IMPORTANT
This feature is applicable for Relational datasource only at Client Mode.
Value Sorting allows to sort columns and rows based on value fields.
The headers of the column to be sorted is given in the ‘headerText’ property under ‘valueSortSettings’ in field wise order separated by a string. The string which is used to separate the headers is given in the property ‘headerDelimiters’.
<ej-pivotgrid [valueSortSettings]="valueSortSettings">
</ej-pivotgrid>
export class PivotGridComponent {
public valueSortSettings;
constructor()
{
this.valueSortSettings = {
headerText: "Bike##Quantity",
headerDelimiters: "##",
sortOrder: ej.PivotAnalysis.SortOrder.Descending
};
}
}
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page