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

Exception when dragging a radpanel

13 Answers 247 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Sergi
Top achievements
Rank 1
Sergi asked on 06 Jul 2011, 11:31 AM

I get an exception when trying to drag a radpanel with the following layout:

<telerik:RadDocking x:Name="radDocking" Grid.Row="1">
    <telerik:RadDocking.DocumentHost>
        <telerik:RadPaneGroup x:Name="radPaneDocuments">
            <telerik:RadPane x:Name="radPane1" Header="Document 1">
                <TextBlock TextWrapping="Wrap" Text=""></TextBlock>
            </telerik:RadPane>
            <telerik:RadPane x:Name="radPane2" Header="Document 2">
                <TextBlock TextWrapping="Wrap" Text=""></TextBlock>
            </telerik:RadPane>
        </telerik:RadPaneGroup>
    </telerik:RadDocking.DocumentHost>
    <telerik:RadSplitContainer x:Name="radSplitContainer" InitialPosition="DockedLeft" Width="150">
        <telerik:RadPaneGroup x:Name="radGroupMenu">
            <telerik:RadPane x:Name="radPaneMenu" Header="Menu">
                <StackPanel>
                    <telerik:RadButton x:Name="btnCustomers" Content="Customers" />
                    <telerik:RadButton x:Name="btnMachines" Content="Machines" />
                </StackPanel>
            </telerik:RadPane>
        </telerik:RadPaneGroup>
    </telerik:RadSplitContainer>
</telerik:RadDocking>

I don't know what's wrong with the layout.

Thanks in advance.

13 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 08 Jul 2011, 12:38 PM
Hello Sergi,

 The root of the SplitContainer should be a RadSplitContainer, but not a PaneGroup. To fix the problem you need to just wrap the PaneGroup in the DockumentHost in a SplitContainer.

Hope this helps.

Regards,
Miroslav Nedyalkov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Angel
Top achievements
Rank 1
answered on 13 Jul 2011, 08:18 PM
Hi,
After I updated to Q2 I started to get this exception when I drag a RadPane:
 "Element already has a logical parent. It must be detached from the old parent before it is attached to a new one"

Could you help me solve my problem? I never got this error with the previous Release.
0
Miroslav Nedyalkov
Telerik team
answered on 14 Jul 2011, 01:16 PM
Hi Angel,

 As we changed some things trying to not affect the behavior of the control, we couldn't guess what the problem is. Could you please share with us some more details about your scenario? A sample project that reproduces the problem would be of great help.

Kind regards,
Miroslav Nedyalkov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Angel
Top achievements
Rank 1
answered on 14 Jul 2011, 03:18 PM
Hi,

I tried creating a new project and I copied my xaml to the new project and it works.
 
Then I copied one of your demos and it did not work in my original project the one that I updated the controls, but it worked on the brand new project.

I'm guessing there's a problem when I update the application to the newest controls, something is not updating or I am missing something. I deleted all the references manually and put the new references with no success.
0
Miroslav Nedyalkov
Telerik team
answered on 15 Jul 2011, 09:53 AM
Hi Angel,

 Please try deleting the obj and bin folders and then rebuild the project once again. You could also make sure that all the references point to the same location.

All the best,
Miroslav Nedyalkov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Angel
Top achievements
Rank 1
answered on 16 Jul 2011, 01:22 AM
Hi Miroslav,
I found the problem, it has nothing to do neither with docking nor being a new application , I had this line in my MainWindow

StyleManager.ApplicationTheme = new Windows7Theme();

If I change to metrotheme there's no problem with the application, I also tried with VistaTheme and Office and the application worked.
The problem with selecting windows7theme is at trying to drag a rad pane to the bottom, top, left or right...when I drag it to the center there's no exception thrown.

Hope it helps you fix the problem.

 

 

 

0
Konstantina
Telerik team
answered on 18 Jul 2011, 02:25 PM
Hello Angel,

We are aware of this issue. A fix will be provided in the next internal build.
Sorry for the caused inconvenience.

Greetings,
Konstantina
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Simon Williams
Top achievements
Rank 1
answered on 30 Aug 2011, 02:55 PM
We are experiencing this same issue as we also use the Windows 7 theme.

Is it possible to use a single theme just for the Docking control (e.g. Office Blue) to get this working? 
0
Simon Williams
Top achievements
Rank 1
answered on 30 Aug 2011, 03:10 PM
Ah found it! 

<telerik:RadDocking telerik:StyleManager.Theme="Office_Blue">
0
Jordan
Top achievements
Rank 1
answered on 15 Sep 2011, 02:28 PM
SummerTheme is also throwing the exception
0
Miroslav Nedyalkov
Telerik team
answered on 17 Sep 2011, 10:28 AM
Hi Jordan,

 This problem should be fixed in the latest internal build. What version do you use?

All the best,
Miroslav Nedyalkov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Scott
Top achievements
Rank 1
answered on 03 Nov 2011, 09:52 PM
Drag/drop is broken in Version=2011.2.920.40 and was definitely working in the previous version.

I cannot get it to work simply by adding telerik:StyleManager.Theme="Metro" to the set of RadDocking attributes.

Do you folks at Telerik believe that you understand the problem or would you like me to bundle up a demo project and send it through a support ticket? Glad to read that you think you have an internal version that might fix it. How can I test it and when do you think that it will make it to a generally available release?
0
Miroslav Nedyalkov
Telerik team
answered on 07 Nov 2011, 09:55 AM
Hello Scott,

I confirm that the problem existed in the 2011 Q2 SP1 version that you use. We fixed the problem and the fix is included in the nightly build we provide every Monday. Do download the latest internal build go to your account page at www.telerik.com and you will find the link at bottom-right corner of the page.

Hope this helps.

Greetings,
Miroslav Nedyalkov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Docking
Asked by
Sergi
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Angel
Top achievements
Rank 1
Konstantina
Telerik team
Simon Williams
Top achievements
Rank 1
Jordan
Top achievements
Rank 1
Scott
Top achievements
Rank 1
Share this question
or