EasyUI Forum
November 05, 2025, 04:46:48 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Prevent Drop as Append for Tree  (Read 9709 times)
leela
Newbie
*
Posts: 29


View Profile Email
« 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.
 
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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.
Logged
leela
Newbie
*
Posts: 29


View Profile Email
« Reply #2 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?
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!