I have an application where I use several RadDocumentPanes in the DocumentHost to keep various content. The users are (obviously) able to move panes around as they like. When the application closes the current layout is saved and restored automatically when the application is started again.
When I initially open the application and no saved layout exist the panes in the DocumentHost are showed in the default order. When I save that layout the display order is preserved perfectly in the saved XML output. All is good. If I however start to move panes around within the DocumentHost or move a pane out of the DocumentHost and back again then the saved layout will not reflect the order in which the panes are displayed. And on load they will obviously be restored in a different order.
This can actually be reproduced easily using the Telerik WPF demo application. Perform the following operations using the "Save/Load Layout" example:
1. Open the example, press the "Save Layout" button and inspect the saved XML in the "Layout XML" pane. Note that the order in the XML of the DocumentHost part reflects the order which the two panes ("Layout XML" and "Document 1") are shown. All is good.
2. Move the "Panel Top 1" inside the DocumentHost and dock it at the end. Save the layout again and check the order of the XML. All is still good.
3. Move the "Panel Right 1" inside the DocumentHost and dock it somewhere in the middle. Save the layout again. Note that the saved order no longer reflects the displayed order.
4. Press the "Load Layout" button and note that the order in the DocumentHost is now switched around.
This problem does as far as I have been able to detect only affect the DocumentHost and not the other pane groups.
The problem is obviously highly annoying and I would like some pointers as to how I can either solve or work around it.
When I initially open the application and no saved layout exist the panes in the DocumentHost are showed in the default order. When I save that layout the display order is preserved perfectly in the saved XML output. All is good. If I however start to move panes around within the DocumentHost or move a pane out of the DocumentHost and back again then the saved layout will not reflect the order in which the panes are displayed. And on load they will obviously be restored in a different order.
This can actually be reproduced easily using the Telerik WPF demo application. Perform the following operations using the "Save/Load Layout" example:
1. Open the example, press the "Save Layout" button and inspect the saved XML in the "Layout XML" pane. Note that the order in the XML of the DocumentHost part reflects the order which the two panes ("Layout XML" and "Document 1") are shown. All is good.
2. Move the "Panel Top 1" inside the DocumentHost and dock it at the end. Save the layout again and check the order of the XML. All is still good.
3. Move the "Panel Right 1" inside the DocumentHost and dock it somewhere in the middle. Save the layout again. Note that the saved order no longer reflects the displayed order.
4. Press the "Load Layout" button and note that the order in the DocumentHost is now switched around.
This problem does as far as I have been able to detect only affect the DocumentHost and not the other pane groups.
The problem is obviously highly annoying and I would like some pointers as to how I can either solve or work around it.