Wijmo UI for the Web
refresh Method
wijmo.data Namespace > ArrayDataView Class : refresh Method

The refresh method reloads the DataView, and returns a resolved promise object:

$.Deferred().resolve().promise()

Syntax
var instance = new wijmo.data.ArrayDataView();
var value; // Type: any
value = instance.refresh();
function refresh() : any;
Example

Unlike AjaxDataViewODataView, and BreezeDataView objects, only successful callbacks are called. If you define a fail callback in the .then() method, it is never called, so we can only define a success callback in the .then() method of the ArrayDataView refresh object.

arrayDataView.refresh().then(
          function(){
              alert("Refresh Success!");
          }
     );
See Also

Reference

ArrayDataView Class

Data

Promises