onGridHeaderClick

fires when the user clicks on the grid's header

boolean onGridHeaderClick(string name,Event e);
namestringthe name attribute of the column which header the user clicks on
eEventa native event object
booleandefines whether the default action of the event will be triggered (true) or canceled (false)

Example

gantt.attachEvent("onGridHeaderClick", function(name, e){
    //any custom logic here
    return true;
});

Details

Returning false will cancel the default handler (adding a new task on the "plus" button click or sorting a column)

Back to top