Wijmo UI for the Web
refresh Method
wijmo.data Namespace > AjaxDataView Class : refresh Method
The refresh method reloads the DataView, and provides an object to which you can bind event handlers such as the .then() method. See deferred.then() in the jQuery API documentation for more information.
Syntax
var instance = new wijmo.data.AjaxDataView();
var value; // Type: any
value = instance.refresh();
function refresh() : any;

Return Value

Returns a deferred promise object. (See deferred.promise() in the jQuery API documentation for more information.)

Example

The deferred object sets the state to success or fail.  So we can define the success callback and fail callback in the .then() method.

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

Reference

AjaxDataView Class

Data

Promises