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

Dynamically added panes invisible after loading layout

1 Answer 34 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Paul Dhertoghe
Top achievements
Rank 1
Paul Dhertoghe asked on 30 Jun 2010, 08:32 AM
Hello,

in our application the user can dynamically add components, each of which are hosted in a RadPane. The user can choose to save the layout at various times, but it's possible that the layout is not saved after some components are added.
When the application starts again, a RadPane is constructed for each component, and each RadPane is located at (0,0). Then LoadLayout is called, and each pane that existed during the latest SaveLayout call is restored to its current location. But the RadPanes for which no layout info is present, are hidden.
We would like that the RadPanes for which no layout info is present, would remain visible at location (0,0).
How can this be accomplished?

Thanks,
Paul

1 Answer, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 02 Jul 2010, 11:14 AM
Hello Paul,

 You could restore the panes that are not part of the saved layout after the layout is loaded. To check whether a pane is loaded or not you could use the ElementLoaded event of the Docking control or to use the Panes property of the Docking control after the load of the layout is finished.

You could restore a pane that wasn't loaded in the layout by making sure it has no parent and add it into an existing PaneGroup that is already into the Docking control.

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
Paul Dhertoghe
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or