TreeList.SortChanging

Syntax

SortChanging: function (sender, args);

Parameters

sender. Event source.

args. Event information. Available arguments: Column is a column index with sorting changing; Method is a sorting method, element of the PP.SortDirection enumeration; Property - property name used for sorting (only for the first column); Recursive - indicates whether child elements are sorted: true (by default) - sorting is applied to all child branches, false - child branches can have their own sorting options;  Cancel - indicates whether checkbox is selected/deselected to change column sorting: true - operation canceled, false (by default) - operation is not canceled.

Description

The SortChanging event occurs on changing of hierarchical tree column sorting.

Comments

Column sorting is available if the TreeList.EnableSortColumns property is set to true.

In order to sort the column, press column heading requiring sorting.

Example

the example of event use is given in description of the TreeList.SortChanged event.

See also:

TreeList