change

Fires at the end of a data retrieval and processing pipeline, when the data is successfully read and processed.

var dataSource = new shield.DataSource({
    events: {
        change: function (e) {
            var dataView = e.target.view;
            //display data from dataView in the page
        }
    }
});

The fromCache property of the event object indicates whether the data that is retrieved is coming from the local cache:

var dataSource = new shield.DataSource({
    events: {
        change: function (e) {
            if (e.fromCache) {
                console.log("data is from cache.");
            }
        }
    }
});