DataGrid.addOnScroll

Overview | Methods | Fields | This Package | All Packages

DataGrid.addOnScroll

Assigns a delegate to the scroll event.

Syntax

public void addOnScroll( CancelEventHandler handler )

Parameters

handler

The CancelEventHandler delegate to be notified when the event occurs.

Remarks

The scroll event occurs when the grid is scrolled, either programmatically or by the user. To programmatically scroll the grid, call scroll, makeCurrentCellVisible, setFirstRow, or setLeftColumn. The user can scroll the grid by using the scroll bars or the keyboard. (The allowArrows, enterAction, and tabAction properties determine how the keyboard can be used within the grid.) When the scroll box is dragged, the scroll event is triggered when the scroll box is released.

Canceling the scroll event restores the grid's previous scroll position.

See Also   removeOnScroll