Events

This section describes events raised by the DataSource object.

To handle events, use one of the following methods.

changed

Fires after data is successfully loaded.

Type:

Event

To learn how to handle events, refer to the Events and Change Tracking topic.

loadError

Fires when data loading is failed.

Type:

Event

Function parameters:
error:

Object

An object defining the occurred error.

Object structure:
message:

String

The system message about the occurred error.

To learn how to handle events, refer to the Events and Change Tracking topic.

loadingChanged

Fires when the data loading status is changed.

Type:

Event

Function parameters:
isLoading:

Boolean

Indicates whether data is being loaded.

To learn how to handle events, refer to the Events and Change Tracking topic.