This question is locked. New answers and comments are not allowed.
I have a tree view control inside a templated control. Next to this I have a data grid that allows dragging items from the grid to the tree. This had always worked but sometime in the last few months it stopped. Now when I drag over the tree the DropQueryEvent fires ok but the destination is always RadTreeView instead of RadTreeViewItem even when I am right over an item in the tree. As I said this used to work but no idea when it stopped so not sure if it was after we upgraded the assembly version or not. Here is my event:
And here is the method:
The code always returns at
because it is always RadTreeView.
_folderList.AddHandler(RadDragAndDropManager.DropQueryEvent,
new
EventHandler<DragDropQueryEventArgs>(TreeDropQuery),
true
);
And here is the method:
if
(e.Options.Destination ==
null
)
return
;
if
(!(e.Options.Destination
is
RadTreeViewItem))
return
;
if
(!(((RadTreeViewItem)e.Options.Destination).Item
is
WorkspaceNode) &&
!(((RadTreeViewItem)e.Options.Destination).Item
is
FolderNode))
return
;
e.QueryResult =
true
;
e.Handled =
true
;
The code always returns at
if
(!(e.Options.Destination
is
RadTreeViewItem))
return
;
because it is always RadTreeView.