This example demonstrates how to manage dashboard state to save and restore selected master filters values, current drill-down levels and other parameters such as Treemap layers.
When the main window closes, the DashboardControl.GetDashboardState obtains a dashboard state object. It is serialized to XML and added to the XElement object stored stored in the CustomProperties collection. Subsequently the dashboard with the dashboard state data is saved to a file.
When the application starts, the DashboardControl loads the dashboard and the DashboardState object is deserialized and restored using the GetDataFromString method in the DashboardControl.SetInitialDashboardState event handler.
- Dashboard for Web Forms - How to specify a default dashboard state in code
- Dashboard for MVC - How to specify a default dashboard state in code
- Dashboard for ASP.NET Core - How to specify a default dashboard state in code
- Dashboard for WinForms - How to Save and Restore the Dashboard State
(you will be redirected to DevExpress.com to submit your response)