Exception when dragging a radpanel

14 posts, 0 answers
  1. Sergi
    Sergi avatar
    34 posts
    Member since:
    Sep 2007

    Posted 06 Jul 2011 Link to this post

    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.
  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 08 Jul 2011 Link to this post

    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!

  3. UI for WPF is Visual Studio 2017 Ready
  4. Angel
    Angel avatar
    8 posts
    Member since:
    Feb 2011

    Posted 13 Jul 2011 Link to this post

    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.
  5. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 14 Jul 2011 Link to this post

    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!

  6. Angel
    Angel avatar
    8 posts
    Member since:
    Feb 2011

    Posted 14 Jul 2011 Link to this post

    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.
  7. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 15 Jul 2011 Link to this post

    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!

  8. Angel
    Angel avatar
    8 posts
    Member since:
    Feb 2011

    Posted 15 Jul 2011 Link to this post

    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.

     

     

     

  9. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 18 Jul 2011 Link to this post

    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!

  10. Simon Williams
    Simon Williams avatar
    13 posts
    Member since:
    Jun 2010

    Posted 30 Aug 2011 Link to this post

    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? 
  11. Simon Williams
    Simon Williams avatar
    13 posts
    Member since:
    Jun 2010

    Posted 30 Aug 2011 Link to this post

    Ah found it! 

    <telerik:RadDocking telerik:StyleManager.Theme="Office_Blue">
  12. Jordan
    Jordan avatar
    3 posts
    Member since:
    May 2011

    Posted 15 Sep 2011 Link to this post

    SummerTheme is also throwing the exception
  13. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 17 Sep 2011 Link to this post

    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 >>

  14. Scott
    Scott avatar
    30 posts
    Member since:
    Aug 2011

    Posted 03 Nov 2011 Link to this post

    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?
  15. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 07 Nov 2011 Link to this post

    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 >>

Back to Top
UI for WPF is Visual Studio 2017 Ready