Last Updated: 03 Apr 2015 08:31 by ADMIN
Telerik Admin
Created on: 24 May 2013 13:38
Category: Docking
Type: Bug Report
After reordering RadPanes in a RadPaneGroup the EnumeratePanes() method doesn't return them in the new order
Calling EnumeratePanes() after reordering RadPanes into a RadPaneGroup using drag and drop returns the panes in wrong other.This causes another issue. When saving the layout by using the SaveLayout method, the RadPanes are saved in wrong order.

For a workaround you can check the following thread: 

"You can then fix the problem as follows:
    1. Read the RadPaneGroup.Items collection and extract the SerializationTag for each pane to a list. This list contains the correct order which you want to save.
    2. Save the docking layout using the SaveLayout() method on the main docking control and extract the XML as a string as you normally would. But do not save it to a file just yet.
    3. Create an XML document using XDocument and parse the XML string.
    4. Extract a list of all elements of type "RadDocumentPane" using the Descendants() method and sort these in the right order using the ordered list you created in step 1.
    5. Locate the RadPaneGroup for the DocumentHost and delete all elements of the child element "Items".
    6. Add the sorted elements from step 4 back into the RadPaneGroup.Items container.
    7. Save the result to a textfile."
Posted on: 09 Mar 2015 12:26
Available in LIB version 2015.1.0309, it will be also available in the 2015 Q1 SP1.
Posted on: 22 Apr 2014 12:51
Hi Katie,

We have planned to improve the Save/Load Layout functionality for the next major release of the controls. This issue will be definitely considered once we get to that point. However for now you can check the workaround I have included in the description of the issue above.

Posted on: 10 Apr 2014 11:07
This is a significant problem for us. Do you have any ideas when this can be resolved?