Events

This section describes events raised by the DataSource.

changed

Raised when data has successfully been loaded.

JavaScript
dataSource.changed.add(function() {
    //handle event
});

loadError

Raised when data loading has failed.

JavaScript
dataSource.loadError.add(function() {
    //handle error
});

loadingChanged

Raised when the data loading status has been changed.

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

JavaScript
dataSource.loadingChanged.add(function() {
    //handle event
});