Skip to main content

afterSort

fires after a column is sorted by clicking on its header

afterSort: (col: object, dir: string) => void;

Parameters:

  • col: object - an object with the configuration of a column
  • dir: string - the sorting direction ("desc", "asc")

Example

grid.events.on("afterSort", (col, dir) => {
console.log(col, dir);
});

Change log:

added in v7.1