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

RadDocking loadLayout is not restoring the Pane - IsPinned

1 Answer 127 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Jordi
Top achievements
Rank 1
Jordi asked on 24 May 2012, 05:39 PM

Hello

 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)?
Thanks,

1 Answer, 1 is accepted

Sort by
0
Boyan
Telerik team
answered on 29 May 2012, 01:07 PM
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.

Regards,
Boyan
the Telerik team

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

Tags
Docking
Asked by
Jordi
Top achievements
Rank 1
Answers by
Boyan
Telerik team
Share this question
or