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

RadPane not appearing when set to ExcludedFromLayoutSave

3 Answers 20 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 22 Mar 2016, 01:49 PM

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

3 Answers, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 23 Mar 2016, 08:15 AM
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.
0
Alex
Top achievements
Rank 1
answered on 23 Mar 2016, 07:04 PM

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

0
Nasko
Telerik team
answered on 24 Mar 2016, 02:27 PM
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.
Tags
General Discussions
Asked by
Alex
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Alex
Top achievements
Rank 1
Share this question
or