:: Home >>

row mouse events

Grid rows trigger a set of mouse-related events -

Syntax

obj.onRowMouseOver = function(event, row){...};
obj.onRowMouseOut = function(event, row){...};
obj.onRowMouseDown = function(event, row){...};
obj.onRowMouseUp = function(event, row){...};
obj.onRowClicked = function(event, row){...};
obj.onRowDoubleClicked = function(event, row){...};

Parameters

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

Example

obj.onRowClicked = function(event, rowIndex){
    alert(this.getRowPosition(rowIndex));
}

Remarks

If any of the Ctrl-, Alt- or Shift- button is pressed then onRowClicked and onRowDoubleClicked events will not fire. Instead the event name will include the combination of the control characters - for example, onRowShiftDoubleClicked or onRowCtrlClicked

See also

row template

Comments

10 Dec 08
onRowClicked() rationale zenbuyer (2)
9 Feb 07
MouseOver event Ankur (0)
31 Aug 06
row background color jack (5)

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