Check documentation for the latest version of dhtmlxSuite onBeforeSorting DHTMLX Docs

onBeforeSorting

fires before data sorting is started

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

Available only in PRO Edition

Example

grid.attachEvent("onBeforeSorting", function(ind,type,direction){
    //your code here
    return false;
});

Back to top