RadDocking loadLayout is not restoring the Pane - IsPinned

2 posts, 0 answers
  1. Jordi
    Jordi avatar
    1 posts
    Member since:
    May 2012

    Posted 24 May 2012 Link to this post


     I am using the RadDocking control to manage our application main layout. I wanted to implement a Save/Load functionality in order to provide a better user experience. To do that I added a SaveLayout and LoadLayout menu Items that uses the RadDocking.SaveLayout  and RadDocking.LoadLayout methods (http://www.telerik.com/help/wpf/raddocking-features-save-load-layout.html) . The layout structure is saved and loaded properly, but I noticed that the ‘IsPinned’ property of the panes is not being properly restored. It looks like that property is not being included in the saved layout structure and therefore not being restored.

     As an example:

     1-      Start the application. All Panes are pinned.

     2-      The user saves the layout.

     3-      The user unpin a pane

     4-      The user loads the layout.

     5-      …  the pin remains unpinned….

      Is this an expected behaviour?  If not, How can I accomplish what I am looking for (5- The pane is restored as pinned)?

  2. Boyan
    Boyan avatar
    758 posts

    Posted 29 May 2012 Link to this post

    Hello Jordi,

    If I have understood the problem right although the layout is loaded correctly the Pane IsPinned property is not updated accordingly. Most probably this is due to the fact that you have not set telerik:RadDocking.SerializationTag to the RadPanes.

    When you load the layout, all the elements that are not marked with SerializationTag property are removed and new components are created instead. That is the reason why you should mark your panes with the SerializationTag attribute.

    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
Back to Top