Hello,
I'm trying to setup drag and drop in a ChildWindow. In this moment all works fine if I drag from a Treeview to listboxs.
I have setup this event handler for the treeview:
And the event handler is the seguent:
Private Sub OnTrwDragInfo(ByVal sender As Object, ByVal e As DragDropEventArgs)
If e.Options.Status = DragStatus.DragInProgress Then
If e.Options.ParticipatingVisualRoots.Contains(Me) = False Then
e.Options.ParticipatingVisualRoots.Add(Me)
End If
End If
End Sub
I'm trying to do the same thing, but with a GridView as source control.
In the XAML I have edit the style for the GridViewRow:
<Style TargetType="telerik:GridViewRow">
<Setter Property="telerik:RadDragAndDropManager.AllowDrag" Value="True" />
</Style>
In code behind I have added the event handler for the GridView too:
However the drag and drop doesn't work. In debug I have seen that the when I drag from the GridView, the function OnTrwDragInfo was never called. The treeview (in the same ChildWindow) works fine.
Any ideas?
Thanks,
Alessandro
P.S. I've tested the latest internal buld too, but I have the same problem.
I'm trying to setup drag and drop in a ChildWindow. In this moment all works fine if I drag from a Treeview to listboxs.
I have setup this event handler for the treeview:
RadDragAndDropManager.AddDragInfoHandler(trv,
AddressOf
OnTrwDragInfo)
And the event handler is the seguent:
Private Sub OnTrwDragInfo(ByVal sender As Object, ByVal e As DragDropEventArgs)
If e.Options.Status = DragStatus.DragInProgress Then
If e.Options.ParticipatingVisualRoots.Contains(Me) = False Then
e.Options.ParticipatingVisualRoots.Add(Me)
End If
End If
End Sub
I'm trying to do the same thing, but with a GridView as source control.
In the XAML I have edit the style for the GridViewRow:
<Style TargetType="telerik:GridViewRow">
<Setter Property="telerik:RadDragAndDropManager.AllowDrag" Value="True" />
</Style>
In code behind I have added the event handler for the GridView too:
RadDragAndDropManager.AddDragInfoHandler(grvItems,
AddressOf
OnTrwDragInfo)
However the drag and drop doesn't work. In debug I have seen that the when I drag from the GridView, the function OnTrwDragInfo was never called. The treeview (in the same ChildWindow) works fine.
Any ideas?
Thanks,
Alessandro
P.S. I've tested the latest internal buld too, but I have the same problem.