onBeforeSorting

fires before data sorting is started

void onBeforeSorting(number ind,string type,string direction){ ... };

Parameters

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