BBjGrid::setScrollbarTriggerTopBottomEvent
Description
In BBj 20.10 and higher, this method sets a flag to enable or disable the BBjGridHitTopEvent and BBjGridHitBottomEvent events while scrolling.
Syntax
Return Value | Method |
---|---|
void | setScrollbarTriggerTopBottomEvent(boolean enabled) |
Parameters
Variable | Description |
---|---|
enabled |
Specifies whether GridHitTop and GridHitBottom events are enabled or disabled. By default, enabled is set to true (1).
|
Return Value
None.
Remarks
The default value is true, which allows the events to trigger when the scrollbar hits the bottom or top of the grid. A value of false disables the events for the scrollbar.
The events will still trigger when using page up/down or the up/down arrows when trying to move beyond the grid’s scope of rows. This function only affects the scrollbar’s ability to trigger the events.
This behavior can be set globally in the bbj.properties file by adding the line: com.basis.bbj.grid.disableScrollbarEvent=x, where x is equal to “true” or “false”.
Example
|
Version History
See Also
Methods of BBjGrid – Grid Scrolling
BBjGrid::getScrollbarTriggerTopBottomEvent
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.