TreeListBase.SortChanging

Syntax

SortChanging: function(sender, args);

Parameters

sender. Event source.

args. Event information:

Description

The SortChanging event occurs before changing sorting.

Example

Executing the example requires the SimpleTreeList component with the Tree identifier (see Example of Creating the SimpleTreeList Component).

// Set event
Tree.SortChanging.add( function(sender, args) {
  console.log("SortChanging event:");
  console.log(args);
});
// Initialize event
Tree.setSort(0, PP.Ui.TreeSortDirection.Asc, PP.Ui.TreeSortMethod.String);

After executing the example the SortChanging event is added.

See also:

TreeListBase