This is a migrated thread and some comments may be shown as answers.

RadDockWorkspace and latest dock window state

2 Answers 89 Views
CAB Enabling Kit
This is a migrated thread and some comments may be shown as answers.
Hesham Desouky
Top achievements
Rank 2
Hesham Desouky asked on 03 May 2012, 04:08 PM
Is there any way to save a docked window state/location before user hiding it.
The scenario as follows:
1- user show up a docked window in top dock
2- user dock the window in the left dock
3- user hide the docked window by pressing the close button
4- user want to show up the hidden window again and want to see it in the latest dock location (left dock)

Is there a method to handle the DockWorkspace hide method to get the latest smartpartinfo of the docked window before hiding it?

2 Answers, 1 is accepted

Sort by
0
Hesham Desouky
Top achievements
Rank 2
answered on 08 May 2012, 10:04 AM
Any help?!
0
Julian Benkov
Telerik team
answered on 08 May 2012, 02:11 PM
Hello Hesham,

Thank you for writing.

You can use the Show method of the RadDockWorkspace to achieve this functionality. Here is a sample code snippet :
SmartPartInfo smartPart = new SmartPartInfo("MySmartPartName", "");
workspace.Show(view, smartPart);

The 'view' argument is your SmartPart control instance and the 'MySmartPartName' is the Title of the SmartPartInfo used when your control is registered in the RadDockWorkspace.

Off topic, I noticed that your subscription has expired, which means that your support package has exipred as well. Note that you will need to renew your subscription in order to continue to receive support from us. To do this, please contact sales@telerik.com or check your account (www.telerik.com/account.aspx). 

I hope this helps.

Kind regards,
Julian Benkov
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Tags
CAB Enabling Kit
Asked by
Hesham Desouky
Top achievements
Rank 2
Answers by
Hesham Desouky
Top achievements
Rank 2
Julian Benkov
Telerik team
Share this question
or