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.

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

loadError

Fires when data loading is failed.

Event Handler Argument:
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.

Event Handler Argument:
isLoading: Boolean
Indicates whether data is being loaded.

This event sends notifications about status changes only. To obtain the current status, use the isLoading() method.

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