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
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
0
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
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
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
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
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
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.
Greetings,
Julian Benkov
the Telerik team
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.
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