:: Home >>

header/footer mouse events

Grid headers and footers trigger a set of mouse-related events -

Syntax

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){...};

Parameters

event (object) - DOM event
column (string) - column index

Example

obj.onHeaderClicked = function(event, column){
    alert(this.getHeaderText(column));
}

Remarks

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

Comments

No comments yet.
Comments will appear on this page and in the main forum.

Documentation:

Recent changes:

2.6.4
2.6.3
2.6.2
2.6.1
2.6.1
2.6.0
2.5.0 - 2.5.6
2.5.6
2.5.0 - 2.5.5
2.5.5