SortColumn: Number;
The SortColumn property determines sorting column.
Use JSON to set the property value and the getSortColumn method to get the property value.
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: