Click here to Skip to main content
16,008,942 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
need drag n drop functionality for treeview nodes..
tried below code but not working :(
please help....


HTML
<script src="Scripts/dist/jstree.js" type="text/javascript"></script>
   <script src="Scripts/dist/jstree.min.js" type="text/javascript"></script>
<div id="jstree">
       <!-- in this example the tree is populated from inline HTML -->
       <ul>
           <li>Root node 1
               <ul>
                   <li id="child_node_1">Child node 1</li>
                   <li>Child node 2</li>
               </ul>
           </li>
           <li>Root node 2</li>
       </ul>
   </div>
Posted
Updated 29-Jan-14 22:53pm
v3

1 solution

Should use "jstree-drop" class for the Nodes which needs a Drag and Drop .It uses the "dnd" plugin available for jstree .

Reference which might help you

http://jstree-sametree-dnd.blogspot.in/[^]

http://dna.engr.latech.edu/~vsp004/lite-web/js/jstree/_docs/dnd.html#[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900