Hello,
I am dragging from a GridView to a RadTreeView, and everything is working correctly in this case. I would like the GridView items to also be able to drag to a RadioButton, and the expected events are firing, but the visual cue does not change from the red circle that indicates 'not allowed'. I have set the AllowDrop property on the RadioButton, and also set RadDragAndDropManager.AllowDrag = "True". In my DropQueryEvent handler I am setting setting the QueryResult to true. Is there something else I am missing? Here is code from the DropQueryEvent handler, if I set a break point in the 'if' block the code is hit, and I don't see anything being called after this that changes the value of QueryResult. If I release the mouse button over the RadioButton the DropInfoEvent is fired, and the correct item from the grid is passed in. The only problem is that the visual cue is not changing to indicate that the drop is allowed.
I am dragging from a GridView to a RadTreeView, and everything is working correctly in this case. I would like the GridView items to also be able to drag to a RadioButton, and the expected events are firing, but the visual cue does not change from the red circle that indicates 'not allowed'. I have set the AllowDrop property on the RadioButton, and also set RadDragAndDropManager.AllowDrag = "True". In my DropQueryEvent handler I am setting setting the QueryResult to true. Is there something else I am missing? Here is code from the DropQueryEvent handler, if I set a break point in the 'if' block the code is hit, and I don't see anything being called after this that changes the value of QueryResult. If I release the mouse button over the RadioButton the DropInfoEvent is fired, and the correct item from the grid is passed in. The only problem is that the visual cue is not changing to indicate that the drop is allowed.
var targetRadioButton = e.Options.Destination
as
RadioButton;
if
(targetRadioButton !=
null
)
{
e.QueryResult =
true
;
e.Handled =
false
;
return
;
}