Check documentation for the latest version of dhtmlxSuite onAfterSorting DHTMLX Docs

onAfterSorting

fires exactly after sorting has occured in the grid

void onAfterSorting(number index,string type,string direction);
indexnumberthe index of a column
typestringthe sorting type("str","int","date")
directionstringthe direction of sorting ("asc","des")

Available only in PRO Edition

Example

grid.attachEvent("onAfterSorting", function(index,type,direction){
    //your code here
});

Back to top