RadPane not appearing when set to ExcludedFromLayoutSave

4 posts, 0 answers
  1. Alex
    Alex avatar
    6 posts
    Member since:
    Jul 2015

    Posted 22 Mar Link to this post

    Hi,

    We have a RadDocking control in which one of the RadPane is set to "FloatingDockable" within RadSplitContainer. It is also set to telerik:RadDocking.ExcludedFromLayoutSave="True". At the start of the application we are loading the RadDocking with the saved layout by calling RadDocking.LoadLayoutFromString(layout).

    When we load the layout with the above operation, we are not able to see the RadPane that is set to "FloatingDockable". Remaining Rad Panes are appearing without any issue.

    Can you please help in identifying what is causing the issue and how to fix the same?

     

    Regards,

    Alex

  2. Nasko
    Admin
    Nasko avatar
    587 posts

    Posted 23 Mar Link to this post

    Hello Alex,

    The observed by you behavior is an expected one when the ExcludedFromLayoutSave attached property is set to True. The pane that has that property set to True will be skipped when the layout is saving and when loading the layout later, the Pane wont' exist anymore as you have observed - only the Panes that are saved and loaded from the XML file will exist. 

    What we could suggest you as one possible approach to achieve the desired is to try to create the Pane in the code behind after the LoadLayoutFromString is called and the layout is loaded completely.

    We would like also to inform you that a new feature that will allow writing custom save/load layout logic is under development and should be released with Q2 2016. Using it you will be able to implement a new logic for saving the panes and loading them. You could follow the item for the feature on the following link:
    http://feedback.telerik.com/Project/143/Feedback/Details/67014-allow-writing-custom-save-load-layout-logic

    Hope the provided information will be helpful for you.

    Regards,
    Nasko
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Alex
    Alex avatar
    6 posts
    Member since:
    Jul 2015

    Posted 23 Mar Link to this post

    Hi,

    I am trying the approach of creating the RadPane from the code behind and add it to the RadDocking control.

    When I set the property of RadSplitContainer's InitialPosition to FloatingDockable, I am not able to see RadPane on the screen. Same if I set it to DockLeft\DockRight, I am able to see it on the screen.

    Please let me know what is causing the issue?

     

    Regards,

    Alex

  5. Nasko
    Admin
    Nasko avatar
    587 posts

    Posted 24 Mar Link to this post

    Hello Alex,

    We are not exactly sure what might be causing the observed by you behavior. Please, check that attached sample that demonstrates the described in my previous response approach. Notice that the pane is created and visualized as expected right after the layout is loaded.

    Could you please, try to modify the project in order to reproduce your issue and send it to us - thus we could be able to provide you with a prompt solution?

    We hope this will help you.

    Regards,
    Nasko
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top