Pinned state not saved when using SaveLayout()

3 posts, 0 answers
  1. Pierre
    Pierre avatar
    23 posts
    Member since:
    Oct 2015

    Posted 18 Nov 2015 Link to this post

    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. Nasko
    Nasko avatar
    727 posts

    Posted 19 Nov 2015 Link to this post

    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.

    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
  3. Pierre
    Pierre avatar
    23 posts
    Member since:
    Oct 2015

    Posted 19 Nov 2015 in reply to Nasko Link to this post

    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!

Back to Top