0 Replies Latest reply on Oct 15, 2007 1:45 AM by paranoid945

    how to get dropped item when drag n drop in a tree?

    paranoid945
      hi guys,

      I made a tree which can drag and drop itself, I want perform a task(a http request) to verify if the node can be dropped, so on the dragDrop event I invoked the "preventDefault()" method so it won't be dropped, and I determine from the http request result and make my own decision to add the node to the target or not, I have already get the selected node(dragged one), but I can not find or identify the target node being dropped, anyone can help me?(besides, I found a method name "calculateDropIndex", but I don't know how to use it)