getSortingState

returns the current state of sorting data in TreeGrid

object getSortingState();

Returns

objectan object with the current state of sorting data in the treegrid

Example

var state = treegrid.getSortingState(); 
// -> {dir: "desc", by: "country"}

Related samples

Details

The return object includes the following attributes:

  • dir - (string) the sorting direction (desc, asc)
  • by - (string) the id of a column that the treegrid is sorted by
See also
Change log

added in v6.4

Back to top