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

Update saved layout

5 Answers 24 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Leśmian
Top achievements
Rank 2
Leśmian asked on 01 Dec 2015, 07:55 AM
Hi,
I use RadDocking with several RadPanes. I implemented Load/Save functionality as described in Save/Load Layout. It works great, but what if I add a new pane to my RadDocking control? User with saved layout will still see old layout? How to update user layout to match current number of panes in the application? I don't want to delete user layout every time I add something new to the application. 

5 Answers, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 03 Dec 2015, 08:42 AM
Hello,

You would need to either save the Layout when new pane has been added or you could save it when the application is about to be closed, so the last used layout is persisted.

Hope this helps.

Regards,
Kalin
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
Leśmian
Top achievements
Rank 2
answered on 03 Dec 2015, 08:47 AM
Well I know how and when user can save layout, but what if I as a application developer want to add a new pane and release new version of application? I want to add that pane to user saved layout? Maybe I should firstly check what panes are in user's saved layout and compare them with default application layout and add missing panes after I load user's layout?
0
Kalin
Telerik team
answered on 07 Dec 2015, 04:56 PM
Hi,

For this scenario you would need to manually update the XML in order to include the newly added Pane.

Hope this helps.

Regards,
Kalin
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
Leśmian
Top achievements
Rank 2
answered on 08 Dec 2015, 03:56 PM
Are you sure about it? Maybe I can implement something like in this thread: http://www.telerik.com/forums/loadlayout-ignore-missing-additional-panes
0
Kalin
Telerik team
answered on 11 Dec 2015, 08:10 AM
Hi,

If you are using PaneSource - you could also check the following example from our online XAML SDK repository that demonstrates how to resolve such scenario:
https://github.com/telerik/xaml-sdk/tree/master/Docking/PaneSourceWithLayout

Hope this helps.

Regards,
Kalin
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
Tags
Docking
Asked by
Leśmian
Top achievements
Rank 2
Answers by
Kalin
Telerik team
Leśmian
Top achievements
Rank 2
Share this question
or