fires on clicking the column header
header | object | the column header |
event | object | the native HTML event |
target | element | an HTML element on which a click was caught |
boolean | returning false will prevent further actions: headermenu opening, sorting, etc. |
$$("datatable1").attachEvent("onHeaderClick", function(header, event, target){
this.sort({ by:header.column });
});
The first parameter of the handler function is the column header, e.g: {column:"columnId"}
.