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

Remember location of specific toolwindow

3 Answers 71 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Hesham Desouky
Top achievements
Rank 2
Hesham Desouky asked on 24 May 2012, 01:10 PM
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.

3 Answers, 1 is accepted

Sort by
0
Ivan Todorov
Telerik team
answered on 29 May 2012, 01:45 PM
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 >>
0
Hesham Desouky
Top achievements
Rank 2
answered on 29 May 2012, 04:26 PM
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
0
Ivan Todorov
Telerik team
answered on 31 May 2012, 01:29 PM
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 >>
Tags
Dock
Asked by
Hesham Desouky
Top achievements
Rank 2
Answers by
Ivan Todorov
Telerik team
Hesham Desouky
Top achievements
Rank 2
Share this question
or