Deserializing and new/removed dockpanels

6 posts, 0 answers
  1. Mercell
    Mercell avatar
    33 posts
    Member since:
    Nov 2006

    Posted 17 Jul 2008 Link to this post

    Hi,

    I'm using SaveXML and LoadXML to restore the layout of dockpanels. Let's say we release version 1 of our application with 2 dockpanels. In version 2 we need 3 dockpanels but using LoadXML will only load the 2 dockpanels from version 1. Also if we remove a dockpanel from version 1 it will still show up in version 2.

    Is there a way to make the LoadXML NOT overload new/removed dockpanels?

    Thanks,
    Brian
  2. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 18 Jul 2008 Link to this post

    Hello Brian,

    The solution is to use new file for Save/LoadXML API of DockingManager. Another solution is to make a custom action in your setup process that would remove the saved layout and on the first load of the application create the file if file does not already exist. Then it should save the new layout logic.

    I hope this was helpful. If you have additional questions, please contact us.

    Best wishes,
    Julian Benkov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Mercell
    Mercell avatar
    33 posts
    Member since:
    Nov 2006

    Posted 21 Jul 2008 Link to this post

    Hi Julian,

    Thanks for the answer but I don't think that solution is very flexible.

    That meens everytime we release a new version the user has to start all over arranging his/her dockpanels.

    I think it would be a better solution to make the LoadXML NOT add dockpanels that has been removed at designtime and NOT remove dockpanels that has been added at designtime. That is the LoadXML should only update the dockpanels that exists in both the saved xml file AND in the form created at designtime.

    Brian
  5. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 23 Jul 2008 Link to this post

    Hi Bo,

    Indeed, the solution is not very flexible, but is a possible workaround for this case. We are planning to extend and improve Load/Save logic of RadDock for our next releases (after Q2 2008) to support all reported scenarios.

    Thank you for the feedback.

    All the best,
    Julian Benkov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. Dipak
    Dipak avatar
    19 posts
    Member since:
    Oct 2008

    Posted 11 Aug 2010 Link to this post

    Is there any updates in this problem?
  7. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 17 Aug 2010 Link to this post

    Hello Dipak,

    Please note that the DockingManager control is obsolete and its active development stopped after the Q2 2008 release.

    We have already made improvements of the LoadLayout logic, e.g. save added and closed dock windows in design-time. For this reason our team highly recommends you to use the latest version of RadDock. To change the default behavior of its LoadLayout logic, you can handle its LoadedFromXml event.

    Do not hesitate to contact us if you have further questions or issues.

    Greetings,
    Julian Benkov
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
Back to Top
UI for WinForms is Visual Studio 2017 Ready