Skip to content

The following example shows how you can manage the cache in the ASP.NET Core Dashboard control.

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/aspnet-core-dashboard-use-different-caches

Repository files navigation

Dashboard for ASP.NET Core - How to Reset the Data Source Cache

The following example shows how you can manage the cache in the ASP.NET Core Dashboard control.

To refresh the data source cache on the server, add a unique value to the CustomData field in the DashboardConfigurator.DataSourceCacheKeyCreated event handler. You can store the unique GUID value within a session as a parameter and update its value in your code when it is necessary to refresh the cache.

To refresh the data source cache on the client, you can call the DashboardControl.reloadData client method.

  • Click Refresh Cache (Server) to force the cache reset on the server.
  • Click Refresh Cache (Client) to force the cache reset using the client API.

Files to Review

Documentation

More Examples

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)