beforePageNavigate Event

Arguments

eobject

An object that contains the following properties:

directionstring

The navigation direction. Will be one of the following: 'f' (first), 'p' (previous), 'n' (next), 'l' (last), or 'pageNumber'.

Description

Fires before an Ajax callback to navigate to a different page of records.

Discussion

The beforePageNavigate event fires before any callback is made to fetch data from the server. You can use this event to cancel the page navigation by returning false. For example:

Example

if ({dialog.object}._getOnlineStatus() == false) {
    alert("No Internet connection available. Cannot download new records.");
    return false;
}
This is an example. Alpha Anywhere's built-in offline support already handles this case and will not update a paginated List control if no network connection is available.