Grid rows trigger a set of mouse-related events -
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){...};
event (object) - DOM event
row (string) - row index
obj.onRowClicked = function(event, rowIndex){
alert(this.getRowPosition(rowIndex));
}
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