Grid cells trigger a set of mouse-related events -
obj.onCellMouseOver = function(event, column, row){...};
obj.onCellMouseOut = function(event, column, row){...};
obj.onCellMouseDown = function(event, column, row){...};
obj.onCellMouseUp = function(event, column, row){...};
obj.onCellClicked = function(event, column, row){...};
obj.onCellDoubleClicked = function(event, column, row){...};
event (object) - DOM event
column (string) - column index
row (string) - row index
obj.onCellClicked = function(event, column, row){
alert(this.getCellText(column, row));
}
If any of the Ctrl-, Alt- or Shift- button is pressed then onCellClicked
and onCellDoubleClicked
events will not fire. Instead the event name will include the combination of the control characters - for example, onCellShiftDoubleClicked
or onCellCtrlClicked