:: Documentation >>

row mouse events

Grid rows trigger a set of mouse-related events -

null

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

onRowClicked() rationale zenbuyer (2)
MouseOver event Ankur (0)
row background color jack (5)

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