TreeListBase.SortColumn

Syntax

SortColumn: Number;

Description

The SortColumn property determines sorting column.

Comments

Use JSON to set the property value and the getSortColumn method to get the property value.

Example

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

// Set up sorting
Tree.setSort(0, PP.Ui.TreeSortDirection.Asc, PP.Ui.TreeSortMethod.String)
// Get sorting column
Tree.getSortColumn();
// -> "0"
// Get sorting direction
Tree.getSortDirection();
// -> "Asc"
// Get sorting column
Tree.getSortMethod();
// -> "String"

After executing the example information about method and current sorting settings is obtained.

See also:

TreeListBase