This example demonstrates how to manage dashboard state to save and restore user selections.
When the form closes, the DashboardViewer.GetDashboardState obtains a dashboard state object. It is serialized to XML and added to the XElement object stored in the CustomProperties collection. Subsequently the dashboard with the dashboard state data is saved to a file.
When the application starts, the DashboardViewer control loads the dashboard and the DashboardState object is deserialized in the GetStateFromCustomProperty method.
The dashboard state is restored using the GetStateFromCustomProperty method in the DashboardViewer.SetInitialDashboardState event handler.
You can click the Reset Dashboard State button to apply the dashboard state created at runtime.
- ASPxDashboard - How to specify a default dashboard state in code
- ASP.NET MVC Dashboard - How to specify a default dashboard state in code
- ASP.NET Core Dashboard Control - How to specify a default dashboard state in code
- WPF Dashboard - How to Set the Initial Dashboard State
(you will be redirected to DevExpress.com to submit your response)