onAfterSort

fires after tasks are sorted in the grid

void onAfterSort(string|function field, [boolean desc,string|number parent] );
fieldstring|functionthe name of the column that the grid was sorted by or a custom sorting function
descbooleanoptional, the sorting direction: true - descending, false - ascending
parentstring|numberoptional, the id of the parent task, if the tasks were sorted only in the branch of the specified parent

Example

gantt.attachEvent("onAfterSort",function(field, direction, parent){
    // your code here
});

See also
Back to top