Remember location of specific toolwindow

4 posts, 0 answers
  1. Hesham Desouky
    Hesham Desouky avatar
    28 posts
    Member since:
    Oct 2012

    Posted 24 May 2012 Link to this post

    Is there any possible way to remember the location of specific tool window to keep its location after closing and restarting the application.
    I need to do this for specific tool window and not for other doc windows in the rad dock control since the other windows are created dynamically.

  2. Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 29 May 2012 Link to this post

    Hi Hesham,

    Thank you for writing.

    I am not sure if I completely understand your scenario, but generally, it would not be possible to restore the location only of a specific tool windows because it depends on the positions of the other docked windows which you are creating dynamically.

    However, in case the tool window whose location you want to persist is a floating one, you can persist its location in the application settings file Properties\Settings.settings. I have prepared a small sample project which demonstrates this and I am attaching it to this post. Please refer to it for additional details.

    I hope this will help you. Please let me know if there are some details around your requirements which I am missing. This might help me find a solution for your case. Also, feel free to ask if you have any additional questions.

    A bit off topic, I would like to remind you that if you would like to continue receiving support services from us, you should consider renewing your license. Please, contact sales@telerik.com or visit your account page for upgrade options.

    Greetings,
    Ivan Todorov
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Hesham Desouky
    Hesham Desouky avatar
    28 posts
    Member since:
    Oct 2012

    Posted 29 May 2012 Link to this post

    First thanks for your reply,

    Second, our requirement was to remember the exact location, size, dock state and dock position of specific tool window (like visual studio).
    We found the easiest solution is to close all dock windows except the target tool window before calling the RadDock SaveLayout method

    The above technique is working ok, but I don't like this type of workarrounds

    Hope in future releases the layout saving method could have version to opt-out document windows from the saved layout

    thanks
  5. Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 31 May 2012 Link to this post

    Hello Hesham,

    Thank you for your reply.

    I have logged this as a feature request to our Public Issue Tracking System. You can subscribe to it to track it for changes and vote for it to increase its priority. As it gets more votes, we will consider scheduling it for a future release. Here you can find the PITS record.

    Your Telerik points have been updated.

    Regards,
    Ivan Todorov
    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