ViewCache

An object used to store information on the views displayed in an application.

Included in: dx.phonejs.js, dx.webappjs.js, dx.all.js
Type: Object

An application uses the viewCache object to save information on the views that were displayed so that this information is used the next time these views are displayed. This allows you to avoid gathering information on a view each time it is displayed and thus shorten the time a view display process takes. You may need to access the application's view cache. For instance, the Remove a View from Cache tutorial demonstrates how to remove a view from the view cache. To access the application's view cache, use the viewCache field of the HtmlApplication object.

You can influence the way the application's view cache works. In addition, you can provide a custom view cache object to be used by the application. For details, refer to the description of the viewCache application configuration option.

Methods

This section describes the methods used to manipulate the application's view cache.

Events

This section describes events fired by the ViewCache object.