Grid row selectors trigger a set of mouse-related events -
obj.onSelectorMouseOver = function(event, row){...};
obj.onSelectorMouseOut = function(event, row){...};
obj.onSelectorMouseDown = function(event, row){...};
obj.onSelectorMouseUp = function(event, row){...};
obj.onSelectorClicked = function(event, row){...};
obj.onSelectorDoubleClicked = function(event, row){...};
obj.onTopSelectorMouseOver = function(event, row){...};
obj.onTopSelectorMouseOut = function(event, row){...};
obj.onTopSelectorMouseDown = function(event, row){...};
obj.onTopSelectorMouseUp = function(event, row){...};
obj.onTopSelectorClicked = function(event, row){...};
obj.onTopSelectorDoubleClicked = function(event, row){...};
obj.onBottomSelectorMouseOver = function(event, row){...};
obj.onBottomSelectorMouseOut = function(event, row){...};
obj.onBottomSelectorMouseDown = function(event, row){...};
obj.onBottomSelectorMouseUp = function(event, row){...};
obj.onBottomSelectorClicked = function(event, row){...};
obj.onBottomSelectorDoubleClicked = function(event, row){...};
event (object) - DOM event
row (string) - row index
obj.onSelectorClicked = function(event, rowIndex){
alert(this.getRowPosition(rowIndex));
}
If any of the Ctrl-, Alt- or Shift- button is pressed then onSelectorClicked
and onSelectorDoubleClicked
events will not fire. Instead the event name will include the combination of the control characters - for example, onSelectorShiftDoubleClicked
or onSelectorCtrlClicked