Value Sorting

28 Sep 20171 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
            };
        }
 }