var instance; // Type: wijmo.data.IDataView; var value; // Type: IRefreshResult // Parameters var shape; // Type: IShape var local; // Type: bool value = instance.refresh(shape, local);
Parameters
- shape
- Settings for filtering, sorting and/or paging to be applied before loading. In contrast to filter/sort properties in IDataView, the format of properties in the shape parameter does not have to follow the specs defined in IDataView. For instance, BreezeDataView accepts a Breeze.Predicate as shape.filter. However the IDataView properties must not violate the IDataView specs. If a custom filter format cannot be aligned to the IDataView specs, then the properties values must be functions or null.
- local
- Prevents server requests and applies filtering/sorting/paging of the source array on the client-side.
Return Value
A promise object that can be used to receive notification of asynchronous refresh completion or failure.