If I want to ask a confirmation before dragging and droppin

If I want to ask a confirmation before dragging and
dropping a parent, whether to move the children of a parent or just the parent
?

There is no possibility to drop only node � without
its children. But you can use onDrop event (setDropHandler to set handler) to
get the moment node was added to the tree structure, and remove (or leave) its
children. ID of the dropped node is passed as 1st arguiment.

I have the same problem, is it possible to have a short example of the dropHandler function?

Please check attached sample