Update saved layout

6 posts, 0 answers
  1. Leśmian
    Leśmian avatar
    14 posts
    Member since:
    Oct 2015

    Posted 01 Dec 2015 Link to this post

    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. 
  2. Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 03 Dec 2015 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Leśmian
    Leśmian avatar
    14 posts
    Member since:
    Oct 2015

    Posted 03 Dec 2015 Link to this post

    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?
  5. Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 07 Dec 2015 Link to this post

    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
  6. Leśmian
    Leśmian avatar
    14 posts
    Member since:
    Oct 2015

    Posted 08 Dec 2015 Link to this post

    Are you sure about it? Maybe I can implement something like in this thread: http://www.telerik.com/forums/loadlayout-ignore-missing-additional-panes
  7. Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 11 Dec 2015 Link to this post

    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
Back to Top
UI for WPF is Visual Studio 2017 Ready