EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: leela on July 22, 2014, 07:48:30 AM



Title: Prevent Drop as Append for Tree
Post by: leela on July 22, 2014, 07:48:30 AM
Hi,

I have 2 questions.

 
  • I have 2 trees, The user should be able to drag and drop the elements from the left tree to the right tree.
     Initially the left tree would be empty. When it is empty, I am not able to drag and drop any elements on to it.
     What is the best way to achieve this?
  • Also I want to prevent dropping of nodes with 'append' point value for few nodes.
    Is there a way I can change the 'point' value from 'append' to 'top', before the drop happens?


Thanks,
Leela.
 


Title: Re: Prevent Drop as Append for Tree
Post by: stworthy on July 22, 2014, 08:17:18 AM
Please read this topic http://www.jeasyui.com/forum/index.php?topic=2630.0. It shows you how to prevent from dropping some nodes in a tree.


Title: Re: Prevent Drop as Append for Tree
Post by: leela on July 22, 2014, 11:14:42 AM
Hi,

 Thanks for the link. it answers my 2nd question.
 Any solution for the first point. How to drag and drop a node to an empty tree?