Hi Ondrej
Thank you for contacting Syncfusion Support
Query #1: When moving an item to another node it needs to be always added as last child.
By default, on dragging the item from one node to another node, it will add as last child only.The item would get dragged based on the dropping position. If we dropped the dragged item in center of treeviewitem, the item would be added in that position. So can you please brief us in which scenario or the purpose of your requirement to add the dragged item as a last child? It would be helpful for us to proceed further on this.
Query #2: How can I get target item in DragOver event? What is TargetOverItem for?
From your update we come to know that your requirement is to allow drag and drop based on the target items and dragged items. To check for the dropped items, you can use the
PreviewDragOver event of TreeviewAdv. In this you can get the target items using e.source value. In this sample, we have checked for the particular node and allowed dropping of the items. Please download the sample for the same.
Sample:
https://www.syncfusion.com/downloads/support/forum/136067/ze/TreeViewDragDropSample-1556902899 Please try this solution and let us know if it is helpful.
Regards
Vijayalakshmi V.R.