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

Pinned state not saved when using SaveLayout()

2 Answers 12 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Pierre
Top achievements
Rank 1
Pierre asked on 18 Nov 2015, 07:57 PM

After loading my layout that was saved with unpinned panes, I notice that these panes are not loaded as 'unpinned'.  Moreover, these panes no longer seem dockable.

When I look at the generated XLM, I see that IsDockable="False" and that there's nothing to indicate that the pane is unpinned (ie. IsPinned="False").  Is this a bug?  How can I take care of this?

 

2 Answers, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 19 Nov 2015, 01:24 PM
Hi Pierre,

Using the provided description we tried to reproduce the observed by you behavior of RadDocking but it seems everything is working as expected on our side - when the the pane is unpinned and the layout is saved after loading it the pane is unpinned as expected. Please, check the attached video that demonstrates that and let us know if we didn't miss something.

However, what we could assume might be reason for that unexpected behavior is probably  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. 

If this does not help you could you please try to isolate the issue in a sample project and send it back to us - thus we could be able to continue our investigation and provide you with a prompt solution?

We are looking forward to hearing from you.

Regards,
Nasko
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Pierre
Top achievements
Rank 1
answered on 19 Nov 2015, 02:08 PM

Bah!  My bad.

As I was creating a test application to demonstrate my issue (and, at the same time, trying it out elsewhere), I noticed in the original project that I was binding the "IsPinned" property for another purpose.  Once I temporarily removed that binding, the pinned state was correctly saved.

Sorry for all the work it gave you and your team!

Tags
Docking
Asked by
Pierre
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Pierre
Top achievements
Rank 1
Share this question
or