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.

DockingManager.SaveDockState

Thread ID:

Created:

Updated:

Platform:

Replies:

73638 May 13,2008 01:46 PM May 14,2008 09:33 AM Windows Forms 2
loading
Tags: Tools
Ron Alan Sawyer
Asked On May 13, 2008 01:46 PM

I am trying to save the state of my docking manager but apparently am not fully understanding what needs to be done. I have used this code:

Syncfusion.Runtime.Serialization.AppStateSerializer LclStateSerializer = new Syncfusion.Runtime.Serialization.AppStateSerializer(SerializeMode.BinaryFile, @"c:\DockState");
dockingManager1.SaveDockState(LclStateSerializer);


But this does not produce a file.

I have also tried to use SerializeMode.XMLFile, again with no results.

What am I doing wrong?

thanks!


J.Nagarajan [Syncfusion]
Replied On May 13, 2008 07:12 PM

Hi ,

Thanks for your interest in Syncfusion products.

Please use the below code snippet to save the DockState.

AppStateSerializer serializer = new AppStateSerializer(SerializeMode.XMLFile, "..\\..\\Test");
this.dockingManager1.SaveDockState(serializer);
serializer.PersistNow();

Please refer to the following sample that demonstrates the serialization and deserialization of the state of docked controls. In this sample, you can save the docked controls’ state by using SaveDockState button and you can load the serialized state by using LoadDockState button .

http://websamples.syncfusion.com/samples/Tools.Windows/F73638/main.htm

Please let me know if this helps.

Regards,
Nagaraj


Ron Alan Sawyer
Replied On May 14, 2008 09:33 AM

Thank you for your quick reply. I have only had to post one or two questions on this board, but each time the quickness of the response and the time spent creating an example are part of why I am glad I purchased Syncfusion.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

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.

;