DHTMLX Docs & Samples Explorer

Index
dhtmlxgrid
Event Handling

## onAfterSorting Event

Required library edition:

This event occurs exactly after sorting took place in the grid.

Parameters:

- column index
- sorting type (“str”,”int”,”date”)
- direction of sorting (“asc”,”des”)

            grid.attachEvent("onAfterSorting", function(index,type,direction){
                  //any custom logic here
            });