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