getSortingState

returns the current state of sorting data in Grid

object getSortingState();

Returns

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

Example

var state = grid.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 grid is sorted by
See also
Change log

added in v6.4

Back to top