We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to configure State Persistence for Docking child controls added in runtime?

In DockingManager control, State Persistence can be configured for Docking Child controls that created in run time and it will be applied for the Docking child controls only if it is currently active.

This below article helps to understand this process.

Step 1:

Here Create and load Docking Child control in DockingManager by clicking on Add button.

 

 

Step 2:

 

Now saving the state of currently active Docking child controls by using SaveDockState function.

 

Step 3:

 

Close and restart the application. Most end users misunderstand in this scenario and presume clicking Load Button will load Docking Child controls, that were added in application. But it’s not how DockingManager control State Persistence will work.

 

 

In DockingManager, State Persistence will be applied in iteration process. When LoadDockState function is called, then each of Docking Child will be applied with saved state in Iteration process. So, it is needed to load Dynamically created child with same DockLabel information, before applying saved state. Please refer to below screenshot.

Code snippet: [C#]

 

Code snippet [VB]

 

Samples

C#: DockingManager_DynamicSerialization_C#

VB: DockingManager_DynamicSerialization_VB

Article ID: Published Date: Last Revised Date: Platform: Control:
9187 08/20/2018 08/27/2018 Windows Forms DockingManager
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon