Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Feb 21, 2007 16:53
open dhtmlx forum
If I want to ask a confirmation before dragging and dropping a parent, whether to move the children of a pare...

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 ?
Answer posted on Feb 21, 2007 16:53

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.

Answer posted by GR on May 21, 2007 19:18
I have the same problem, is it possible to have a short example of the dropHandler function?
Answer posted on May 22, 2007 13:28
Please check attached sample
Attachments (2)
Answer posted by Darya (Support) on Dec 01, 2014 07:06

The information connected with autocomplete listbox and javascript table editor also can help you, so please check it too.