Grid headers and footers trigger a set of mouse-related events -
obj.onHeaderMouseOver = function(event, column){...};
obj.onHeaderMouseOut = function(event, column){...};
obj.onHeaderMouseDown = function(event, column){...};
obj.onHeaderMouseUp = function(event, column){...};
obj.onHeaderClicked = function(event, column){...};
obj.onHeaderDoubleClicked = function(event, column){...};
obj.onFooterMouseOver = function(event, column){...};
obj.onFooterMouseOut = function(event, column){...};
obj.onFooterMouseDown = function(event, column){...};
obj.onFooterMouseUp = function(event, column){...};
obj.onFooterClicked = function(event, column){...};
obj.onFooterDoubleClicked = function(event, column){...};
event (object) - DOM event
column (string) - column index
obj.onHeaderClicked = function(event, column){
alert(this.getHeaderText(column));
}
If any of the Ctrl-, Alt- or Shift- button is pressed then onHeaderClicked
and onHeaderDoubleClicked
events will not fire. Instead the event name will include the combination of the control characters - for example, onHeaderShiftDoubleClicked
or onHeaderCtrlClicked