Threaded View

  1. #11
    Ext User
    Join Date
    May 2007
    Posts
    40
    Vote Rating
    0
    mhubert is on a distinguished road

      0  

    Smile


    Ok -- thanks that was one thing.

    The second thing that needed changing is the function needs to be applied to the other tree
    Code:
         myfavreport.on('beforenodedrop', function(e){
          var n = e.dropNode; // the node that was dropped
       var copy = new Ext.tree.TreeNode( // copy it
                Ext.apply({}, n.attributes) 
              );
         e.dropNode = copy; // assign the copy as the new dropNode
      });
    below is a trick to prvent duplicating nodes dragged from inside the tree. This allows user sorting but prevents making additional copies
    Code:
         myfavreport.on('beforenodedrop', function(e){
          var n = e.dropNode; // the node that was dropped
       if (e.source.el !=this.el) {
           var copy = new Ext.tree.TreeNode( // copy it
                  Ext.apply({}, n.attributes) 
                );
           e.dropNode = copy; // assign the copy as the new dropNode
       }
      });
    Last edited by mhubert; 3 Jun 2007 at 8:11 PM. Reason: improvment I wanted to share w/ the community

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar