Dynamically added panes invisible after loading layout

2 posts, 0 answers
  1. Paul Dhertoghe
    Paul Dhertoghe avatar
    13 posts
    Member since:
    Oct 2012

    Posted 30 Jun 2010 Link to this post


    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?

  2. Miroslav Nedyalkov
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 02 Jul 2010 Link to this post

    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!

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