:: 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

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.5.0 - 2.5.2
2.5.2
2.5, 2.5.1
2.5.1
2.5
Release History
2.5
2.0.2
textToValue
textToData