This is probably a dumb question but I can't seem to figure it out. How can I select the node that just got dropped somewhere? I know of the .selected property but I am not sure how to reference it. Here is my drag & drop code:
Private Shared Sub PerformDragAndDrop(ByVal dropPosition As RadTreeViewDropPosition, ByVal sourceNode As RadTreeNode, ByVal destNode As RadTreeNode) |
If (sourceNode.Equals(destNode) OrElse sourceNode.IsAncestorOf(destNode)) Then |
Return |
End If |
sourceNode.Owner.Nodes.Remove(sourceNode) |
Select Case (dropPosition) |
Case RadTreeViewDropPosition.Over |
' child |
If Not sourceNode.IsAncestorOf(destNode) Then |
destNode.Nodes.Add(sourceNode) |
End If |
Case RadTreeViewDropPosition.Above |
' sibling - above |
destNode.InsertBefore(sourceNode) |
Case RadTreeViewDropPosition.Below |
' sibling - below |
destNode.InsertAfter(sourceNode) |
End Select |
End Sub |