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

Cannot host multiple RadDocking controls in TabItems of a TabControl

5 Answers 117 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Alan Adorjan
Top achievements
Rank 1
Alan Adorjan asked on 30 Mar 2010, 06:55 AM
I working on an app where I would like to have a Window with a single TabControl and a single RadDocking control in each one of its TabItems.  This works as long as the docking control is the content of the TabItem control.  As soon as something comes in between the two (such as the Grid control in the sample code), the exception below is thrown.  Do you know if this scenario is possible?  I'm using 2010 Q1.
    
    <TabControl> 
        <TabItem Header="Foo"
            <Grid> 
                <td:RadDocking /> 
            </Grid> 
        </TabItem> 
        <TabItem Header="Bar"
            <Grid> 
                <td:RadDocking /> 
            </Grid> 
        </TabItem> 
    </TabControl> 

System.InvalidOperationException: Specified element is already the logical child of another element. Disconnect it first.
   at System.Windows.FrameworkElement.ChangeLogicalParent(DependencyObject newParent)
   at MS.Internal.FrameworkObject.ChangeLogicalParent(DependencyObject newParent)
   at System.Windows.FrameworkElement.AddLogicalChild(Object child)
   at System.Windows.Controls.ContentControl.OnContentChanged(Object oldContent, Object newContent)
   at System.Windows.Window.OnContentChanged(Object oldContent, Object newContent)
   at Telerik.Windows.Controls.Docking.FakePopupWindow.OnContentChanged(Object oldContent, Object newContent) 
........

5 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 01 Apr 2010, 03:55 PM
Hi Alan,

Thank you for contacting us.

We were able to reproduce the issue. We will do our best to fix this issue for the upcoming service pack.
Your Telerik points have been updated for your involvement.

If you have any other questions please feel free to contact us again.

Kind regards,
Konstantina
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.
0
David Bass
Top achievements
Rank 1
answered on 27 Apr 2010, 05:05 PM
We just upgraded to 2010.1.422.35 and experienced this error, so I assume it hasn't been fixed up to this release. Will there be a 2010 Q1 SP1? Or should we expect the fix in 2010 Q2?

Thanks,

David
0
Miroslav Nedyalkov
Telerik team
answered on 30 Apr 2010, 12:08 PM
Hello David,

This issue is not fixed yet.

Greetings,
Miroslav Nedyalkov
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.
0
John Rippington
Top achievements
Rank 1
answered on 05 May 2010, 10:49 PM
Hello,

Any news on when this issue might be fixed (or any workarounds?)

Regards,
John

0
Miroslav Nedyalkov
Telerik team
answered on 11 May 2010, 01:18 PM
Hello John,

 The issue is fixed and the fix will be included in the next internal build.

Best wishes,
Miroslav Nedyalkov
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
Alan Adorjan
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
David Bass
Top achievements
Rank 1
Miroslav Nedyalkov
Telerik team
John Rippington
Top achievements
Rank 1
Share this question
or