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

Root AdornerLayer Not Found. Please make sure that your root visual is Window or other element that has an adorner layer

3 Answers 96 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Ivo
Top achievements
Rank 1
Ivo asked on 17 Aug 2010, 04:24 PM
Hi, I am recieving following error while trying to reorder columns in RAD TreeListView
I m using the control inside VS plugin window, inside  UserControl.

I have found that simmilar error was already resolved for GridView.

System.InvalidOperationException was unhandled
  Message=Root AdornerLayer Not Found. Please make sure that your root visual is Window or other element that has an adorner layer. Alternatively, wrap your root panel in an <AdornerDecorator> element.
  Source=Telerik.Windows.Controls
  StackTrace:
       at Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.OpenPopup()
       at Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.StartDragging()
       at Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.TryStartDrag(IMouseEventArgs e)
       at Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.OnTrackedElementMouseMoveInternal(IMouseEventArgs e)
       at Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.OnCoverRectangleMouseMove(Object sender, MouseEventArgs e)
       at System.Windows.Input.MouseEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
       at System.Windows.Input.InputManager.ProcessStagingArea()
       at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
       at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
       at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
       at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       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)
       at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
  InnerException:

3 Answers, 1 is accepted

Sort by
0
Yavor Georgiev
Telerik team
answered on 17 Aug 2010, 05:10 PM
Hi Ivo,

 Did you try wrapping your plugin window's root panel in an AdornerDecorator?

Kind regards,
Yavor Georgiev
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
Ivo
Top achievements
Rank 1
answered on 22 Aug 2010, 11:32 AM
Hi,

I tried adding AdornerDecorator using code suggested in following thread:  http://www.telerik.com/community/forums/wpf/gridview/radgridview-exception-on-reordercolumn-dragcolumn-in-panelgroup.aspx

It did not solve the problem.

In order to reproduce the issue, I created sample VS 2010 project.
1.  New Project ( C# -> Extensibility  -> Visual Studio Package)
2. Switched on Tool Window
3. Added RadTreeListView to automaticaly generated ( from VS 2010 ) MyControl.xaml control.
4. Loaded some sample data

Trying to reorder columns I recived the described error.

Note: I was not able to attach the .zip file demonstrating the problem, so let me know you will need the sample code and where i can upload it.
0
Ivo
Top achievements
Rank 1
answered on 22 Aug 2010, 11:41 AM
I have opened a support ticket incident : 341040
Sample solution demonstrating the problem was attached to the ticket.
Tags
TreeListView
Asked by
Ivo
Top achievements
Rank 1
Answers by
Yavor Georgiev
Telerik team
Ivo
Top achievements
Rank 1
Share this question
or