Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to use the built-in caching functionality of the ASP.NET MVC Document Viewer

$
0
0

This example illustrates how to make the DocumentViewer store its document on the client between postbacks.

When the Document Viewer extension performs a callback to the server (for example, when a page is changed), the report document is restored from the cache. So, it is not necessary to recreate a report document and data is not retrieved from the database. The Document Viewer manages a cached document by using the CacheReportDocument and RestoreReportDocumentFromCache delegates.

Note that in case of using this approach, it is necessary to move your report data binding code to its DataSourceDemanded event handler.

 

To learn how to accomplish this task in ASP.NET WebForms, see the following code example: How to use the caching functionality of the Document Viewer

Question Comments

Added By: Felix Zamora at: 7/30/2015 11:25:50 AM    

Its a excellent example. But How would the same example with Report Designer?


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>