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

Drag and Drop problem

5 Answers 121 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Kevin Hendriks
Top achievements
Rank 1
Kevin Hendriks asked on 21 Jan 2011, 05:16 PM
I have a gridview in my application and I get the following error

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.

The structure of the application is as follows

UserControl
-DockPanle
--Grid
---GridView

The user control is loaded in
RadRibbonWindow
-DockPanl
--The Usercontrol

Do I need to changes something in the structure to be able to do the drag and drop?

5 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 24 Jan 2011, 07:32 AM
Hello,

 Can you post more info about the grid version? 

Regards,
Vlad
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
Kevin Hendriks
Top achievements
Rank 1
answered on 24 Jan 2011, 08:47 AM
We are using the following build.
01013RadControls_for_WPF_35_2010_3_1304_DEV_hotfix
0
Tsvyatko
Telerik team
answered on 24 Jan 2011, 12:59 PM
Hello Kevin Hendriks,

Based on the information sent, I assume the most likely reason for this issue is some incompatability in the template set of the RadRibbonWindow. Most likely it lack the Adorner layer.

 Nevertheless, this issue often occurs when the root element does not have the corresponding adorner layer (due to its specific structure or specific template).

In this scenario I can suggest one of the following options:

 - Enable native drag mode - set RadDragAndDropManager.EnableNativeDrag = true in the App constructor. This mode does not relies on adorers to perform drag/drop operation.

- Wrap the root visual in adorer decorator.

Let me know if this helps.

Regards,
Tsvyatko
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
Kevin Hendriks
Top achievements
Rank 1
answered on 24 Jan 2011, 02:12 PM
We tested our solution on different machines, and the error only seems to occure at our XP machines. On windows 7 machines everything works fien.
0
Accepted
Tsvyatko
Telerik team
answered on 27 Jan 2011, 01:50 PM
Hello Kevin Hendriks,

Thank you for sharing this information with us. Based on that we were able to reproduce and identify the problem. The problem has already been resolved and the fix will be included in our next internal build.

I have also updated your telerik points.

Regards,
Tsvyatko
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
GridView
Asked by
Kevin Hendriks
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Kevin Hendriks
Top achievements
Rank 1
Tsvyatko
Telerik team
Share this question
or