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

AdornerLayer Not Found

4 Answers 296 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jose Luis
Top achievements
Rank 1
Jose Luis asked on 01 Oct 2010, 09:47 AM

Hello,

I’m having a issue with RadGridView for WPF.

When dragging a column header into the grouping bar, It throws the following exception:

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.

I have tried to wrap the root panel (and any other panel) into an AdornerDecorator in xaml code. Alternatively, I tried to create an AdornerLayer by code and wrap the panel/s in AdornerDecorators but the result was always the same.

I’m using RadGridView in a custom control derived from Control class. It applies a generic template defined at generic.xaml file and this control is part of an independent assembly referenced in a main project.

Thank you  very much for your help.


4 Answers, 1 is accepted

Sort by
0
Tsvyatko
Telerik team
answered on 01 Oct 2010, 09:58 AM
Hi Jose Luis,

Could please share some additional information about the scenario in which you are experiencing this issue - what is the root element; are you using custom window container; is there any custom style or template applied to the root container. Also could you please share the version of our control you are using.

Best Regards,
Tsvyatko
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
Jose Luis
Top achievements
Rank 1
answered on 01 Oct 2010, 10:31 AM
Hi,

It's working!!!

There was something in your post that I never realized: the main window template. So I inserted the AdornerDecorator wrapping the root panel and it worked.
Until now I was trying to wrap the root panel in the custom control.

Thank you very much for your quick response.

Best regards.

Jose Luis
0
Hennie
Top achievements
Rank 1
answered on 27 Feb 2011, 08:53 PM
Hi

Is this issue operating system dependant? When running the application on Windows 7 32/64 bit our application works fine. When running on Windows 2008 Server via terminal services I get the same error message, on the latest version of the wpf telerik controls.

Regards,

Hennie Bester
0
Tsvyatko
Telerik team
answered on 01 Mar 2011, 10:45 AM
Hi Hennie,

I can suggest two alternative solutions to this issue:

 - Set RadDragAndDropManager.EnableNativeDrag = true (Either in the App constructor or before InitializeComponent()).

 - Use our build with version equal or higher than - 2010.3.1331. We had made some improvements in this matter that will resolve this issue.



All the best,
Tsvyatko
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
GridView
Asked by
Jose Luis
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
Jose Luis
Top achievements
Rank 1
Hennie
Top achievements
Rank 1
Share this question
or