Wijmo UI for the Web
refresh Method
wijmo.data Namespace > ODataView 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.ODataView();
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.

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

Reference

ODataView Class

Data

Promises