Placing Docking control in another Docking control

5 posts, 0 answers
  1. Claudio Giorgio
    Claudio Giorgio avatar
    4 posts
    Member since:
    Aug 2010

    Posted 18 Jan 2011 Link to this post

    Hi,
    if I place a Docking control in another Docking control i recive (only at runtime) this error:
    "Placing Docking control in another Docking control is not supported in the current version. You can disable this error by setting the AllowUnsafeMode property of the inner RadDocking control."

    When are you planning to implement and release this feature?

    Thanks.
  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 19 Jan 2011 Link to this post

    Hi Claudio,

    Unfortunately, this scenario is not supported. We have added this feature request in our Public Issue Tracking System (PITS). You can view it here. You can vote for it, track its status and see when it is going to be implemented.

    Hope this information helps. If you have further questions please let us know.

    Greetings,
    Konstantina
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Tommy
    Tommy avatar
    2 posts
    Member since:
    Feb 2011

    Posted 16 Oct in reply to Konstantina Link to this post

    Hi Telerik Team,

    I have error "Placing Docking control in another Docking control is not supported in the current version. You can disable this error by setting the AllowUnsafeMode property of the inner RadDocking control." when I am using version 2013 Q2.

     

    I am using Telerik RadTabControl within Telerik RadDocking in WPF. There is no property AllowUnsafeMode on Telerik RadTabControl to avoid the error.

    Appreciate your advice. Thanks.

     

     

    System.NotSupportedException: Placing Docking control in another Docking control is not supported in the current version. You can disable this error by setting the AllowUnsafeMode property of the inner RadDocking control.
       at Telerik.Windows.Controls.RadDocking.CheckIsPlacedCorrectly() in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\Docking\RadDocking.cs:line 1395
       at Telerik.Windows.Controls.RadDocking.OnApplyTemplate() in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\Docking\RadDocking.cs:line 185
       at System.Windows.FrameworkElement.ApplyTemplate()
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)
       at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
       at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Border.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Control.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
       at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.ContextLayoutManager.UpdateLayout()
       at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
       at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
       at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
       at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
       at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)


  5. Tommy
    Tommy avatar
    2 posts
    Member since:
    Feb 2011

    Posted 16 Oct Link to this post

    Hi Telerik Team,

    I found the issue in my code. It does have a Telerik RadDocking within a Telerik RadDocking caused the issue. Workaround set AllowUnsafeMode = True.

    If I upgrade my Telerik package, does it fix my issue without set AllowUnsafeMode = True?

    In which version does the fix in?

    Thanks.

  6. Nasko
    Admin
    Nasko avatar
    587 posts

    Posted 17 Oct Link to this post

    Hello Tommy,

    Nested Docking scenarios are officially supported by RadDocking with the Q1 2014 release version. If you upgrade to that version there is no need to use the AllowUnsafeMode property. Some more detailed information you could find on the following link from our documentation:
    http://docs.telerik.com/devtools/wpf/controls/raddocking/features/nesteddocking

    Hope the provided information will be helpful for you.

    Regards,
    Nasko
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top
UI for WPF is Visual Studio 2017 Ready