Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Dock > Deserializing and new/removed dockpanels

Not answered Deserializing and new/removed dockpanels

Feed from this thread
  • Mercell avatar

    Posted on Jul 17, 2008 (permalink)

    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

    Reply

  • Julian Benkov Julian Benkov admin's avatar

    Posted on Jul 18, 2008 (permalink)

    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

    Reply

  • Mercell avatar

    Posted on Jul 21, 2008 (permalink)

    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

    Reply

  • Julian Benkov Julian Benkov admin's avatar

    Posted on Jul 23, 2008 (permalink)

    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

    Reply

  • Dipak avatar

    Posted on Aug 11, 2010 (permalink)

    Is there any updates in this problem?

    Reply

  • Julian Benkov Julian Benkov admin's avatar

    Posted on Aug 17, 2010 (permalink)

    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

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Dock > Deserializing and new/removed dockpanels
Related resources for "Deserializing and new/removed dockpanels"

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]