Value Sorting in EJ 1 Angular PivotGrid

28 Sep 2017 / 1 minute to read


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">
export class PivotGridComponent {
    public  valueSortSettings;

            this.valueSortSettings = {
                headerText: "Bike##Quantity",
                headerDelimiters: "##",
                sortOrder: ej.PivotAnalysis.SortOrder.Descending