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

Reset Layout

3 Answers 49 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Philip Ashworth
Top achievements
Rank 1
Philip Ashworth asked on 18 Feb 2010, 04:17 PM
Hi,

If a user "plays" around with the docking panels then I want to have a button that resets the original layout. How can I do this?

Thanks Phil.

3 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 18 Feb 2010, 04:34 PM
Hi Philip,

 You could save the layout when the Docking control is loaded and when you want to reset it you just need to load this initially saved layout.

Hope this helps.

Kind regards,
Miroslav Nedyalkov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Philip Ashworth
Top achievements
Rank 1
answered on 18 Feb 2010, 04:36 PM
Thanks Miroslav,

I tried that but it "lost" the contents of the panels.

Any other solutions?

Phil.
0
Miroslav Nedyalkov
Telerik team
answered on 18 Feb 2010, 04:53 PM
Hi Philip,

 Did you set the SerializationTag attached properties to all the panes? Without setting it, the Docking control doesn't know which content to which pane to map to. For more information about using the save/load layout feature refer to the following article: http://blogs.telerik.com/miroslavnedyalkov/posts/09-04-22/raddocking_save_load_layout.aspx

Hope this helps.

Greetings,
Miroslav Nedyalkov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Docking
Asked by
Philip Ashworth
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Philip Ashworth
Top achievements
Rank 1
Share this question
or