How to compare sourceItem with destinationItem

1 Answer 102 Views
TreeView
Guille
Top achievements
Rank 1
Guille asked on 04 Aug 2022, 09:12 AM | edited on 23 Aug 2022, 06:05 AM

Hi! I am trying to drag and drop within the same treeview and drag and drop between two different trees. I would like to be able to differentiate when I move in the same tree and in two different trees. My question is, how can I compare the sourceItem with the destinationItem before the nodeDragEnd function? Is there any way to do it? Thank you!

 

TREE A                                                                                                                             

     

TREE B

1 

Jose
Top achievements
Rank 1
Iron
Iron
commented on 12 Sep 2022, 07:52 AM

I have the same issue. I am trying to see if the treeview node is dropped in the same tree or in another to implement different functionalities. Is there any option or any attribute in the event to find the reference of the tree?

1 Answer, 1 is accepted

Sort by
0
Jose
Top achievements
Rank 1
Iron
Iron
answered on 12 Sep 2022, 07:52 AM | edited on 12 Sep 2022, 07:53 AM
[Deleted]
Tags
TreeView
Asked by
Guille
Top achievements
Rank 1
Answers by
Jose
Top achievements
Rank 1
Iron
Iron
Share this question
or