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

Placing Docking control in another Docking control

4 Answers 119 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Claudio Giorgio
Top achievements
Rank 1
Claudio Giorgio asked on 18 Jan 2011, 01:09 PM
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.

4 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 19 Jan 2011, 09:39 AM
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>>
0
Tommy
Top achievements
Rank 1
answered on 16 Oct 2016, 09:40 PM

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)


0
Tommy
Top achievements
Rank 1
answered on 16 Oct 2016, 10:27 PM

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.

0
Nasko
Telerik team
answered on 17 Oct 2016, 06:24 AM
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.
Tags
Docking
Asked by
Claudio Giorgio
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Tommy
Top achievements
Rank 1
Nasko
Telerik team
Share this question
or