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

Unable to load layout after saving "Floating" pane

1 Answer 94 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 05 Nov 2010, 08:15 PM
We are having problems loading a saved layout and I reproduced it with the project that George (Telerik Team) attached to this thread:

http://www.telerik.com/community/forums/wpf/docking/unable-to-dock-pane-after-a-loadlayout.aspx#1362147

Here are the steps:

1) Undock the Documents RadDocumentPane.
2) Enter a name in the textbox.
3) Click Save.
4) Click Load. Notice that this works.
5) Right click the Documents title bar and select "Floating".
6) Click Save.
7) Click Load. Notice the ArgumentOutOfRangeException indicating that the parameter name "index" is out of range.

If you compare the two XML documents that are produced by steps 3 and 6, you will see that a SelectedIndex of -1 appears for the RadPaneGroup named RadDocumentGroup in the second XML document. This appears to be the source of the exception.

<RadSplitContainer>
  <Items>
    <RadPaneGroup SerializationTag="DocumentGroup" SelectedIndex="-1">
      <Items />
    </RadPaneGroup>
  </Items>
</RadSplitContainer>

The RadDocumentPane that used to exist in the Items group has been moved to a RadSplitContainer outside of the document host, which makes sense to me.

<RadSplitContainer InitialPosition="FloatingOnly" FloatingWidth="737" FloatingHeight="515" FloatingX="1769" FloatingY="467" IsInOpenWindow="True" WindowZIndex="1" RelativeWidth="100" RelativeHeight="100" IsAutoGenerated="True">
  <Items>
    <RadPaneGroup RelativeWidth="100" RelativeHeight="100" IsAutoGenerated="True" SelectedIndex="0">
      <Items>
        <RadDocumentPane SerializationTag="DocumentPane" IsDockable="False" Title="Documents" Header="Documents" CanUserClose="False" />
      </Items>
    </RadPaneGroup>
  </Items>
</RadSplitContainer>

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 10 Nov 2010, 04:06 PM
Hi Kevin,

This issue is fixed with the official Q3 release. Please download the binaries and let me know if you still have any problems with RadDocking control.

All the best,
George
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
Docking
Asked by
Kevin
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or