:: Home >>

selector mouse events

Grid row selectors trigger a set of mouse-related events -

Syntax

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){...};

Parameters

event (object) - DOM event
row (string) - row index

Example

obj.onSelectorClicked = function(event, rowIndex){
    alert(this.getRowPosition(rowIndex));
}

Remarks

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

Comments

14 Jul 09
Please help me Gaurav (0)

Comments will appear on this page and in the main forum.

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