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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Load Dock State from files.

Thread ID:





91590 Nov 24,2009 08:50 PM UTC Dec 4,2009 03:45 PM UTC ASP.NET Web Forms (Classic) 4
Tags: Tools
Chris Burke
Asked On November 24, 2009 08:50 PM UTC

I'm using the DockManager and would like to have the ability to load a Dock layout from multiple files. For example, if a user generated layout file is not found, a default one is used. Could someone point me towards an example of this? Thanks.

Rajasekar B [Syncfusion]
Replied On November 26, 2009 12:03 PM UTC


While loading the dock state, if the file is not found you can restore docking state to the default state using the following methd:


I have attached a sample. You can refer to it. Let me know if you have any question.



Chris Burke
Replied On December 2, 2009 09:23 PM UTC

This leads me to another question. I want to be able to package up the file that stores the docking layout info I create, so that others can use my layout. Here is the snippet of code I'm using to save:


Where would this file be save? Is it even possible to obtain ii and distribute via this method, or is there another way I'd have to go about saving it to do this? And if so, how?

Chris Burke
Replied On December 2, 2009 10:33 PM UTC

I guess while I have your attention I have two other questions related to docking.

First is there a quick and easy way to tell the number of controls the docking window currently has attached to it?

And second. I'm also using the TabbedMdiManager. When closing the windows with the close button in the corner, the forms seem to get disposed. Is there a way around this, so they are just made hidden?


Rajasekar B [Syncfusion]
Replied On December 4, 2009 03:45 PM UTC


The saved xml file will be found in the bin folder of your application. The number of controls docked by the docking manager can be found by using the following line:


this will return the number of controls. To hide a form, when it is closed in tabbedmdimanager, handle its form closing event and cancel that event and use the following coding:

To show the form again, use the following lines of code:

I have attached a sample. Refer to it and let me know if you have any question.




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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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