RadDockWorkspace and latest dock window state

3 posts, 0 answers
  1. Hesham Desouky
    Hesham Desouky avatar
    27 posts
    Member since:
    Oct 2012

    Posted 03 May 2012 Link to this post

    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. Hesham Desouky
    Hesham Desouky avatar
    27 posts
    Member since:
    Oct 2012

    Posted 08 May 2012 Link to this post

    Any help?!
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 08 May 2012 Link to this post

    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 >>
Back to Top