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

Deserializing and new/removed dockpanels

5 Answers 114 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Mercell
Top achievements
Rank 2
Mercell asked on 17 Jul 2008, 11:15 AM
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

5 Answers, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 18 Jul 2008, 01:29 PM
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
0
Mercell
Top achievements
Rank 2
answered on 21 Jul 2008, 09:32 AM
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
0
Julian Benkov
Telerik team
answered on 23 Jul 2008, 12:30 PM
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
0
Dipak
Top achievements
Rank 1
answered on 11 Aug 2010, 05:21 PM
Is there any updates in this problem?
0
Julian Benkov
Telerik team
answered on 17 Aug 2010, 10:25 AM
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
Tags
Dock
Asked by
Mercell
Top achievements
Rank 2
Answers by
Julian Benkov
Telerik team
Mercell
Top achievements
Rank 2
Dipak
Top achievements
Rank 1
Share this question
or