Documentation

onBeforeSort

fires before sorting dataset

boolean onBeforeSort(string|function by,string dir,string|function as){ ... };

Parameters

bystring|functiontemplate of sort-by field
dirstringdirection of sorting
asstring|functiontype of sorting

Returns

booleanreturning false will prevent sorting

Example

some.attachEvent("onBeforeSort", function(by, dir, as){
    //... some code here ... 
    //return false to block operation
    return true;
});

See also

Back to top