Results 1 to 2 of 2

Thread: How to do a selective Drag and drop function in a TreePanel

  1. #1
    Sencha Premium Member
    Join Date
    Nov 2010
    Posts
    12
    Vote Rating
    3
      0  

    Question How to do a selective Drag and drop function in a TreePanel

    Hi,

    I have an Ext.tree.Panel with the Ext.tree.plugin.TreeViewDragDrop plugin. Everything works as intended, I can rearrange the nodes with drag and drop.

    But what I want is to define which nodes that I can actually drag and drop and on which nodes I can drop a specific node (i.e. rearrange items within one branch, but not allow to move it outside). Is there a way to do achieve that? I've spent the last two days trying to do this, but I just can't figure it out...

    I'm using Ext 4.1.0 Beta 1

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,381
    Answers
    3997
    Vote Rating
    1536
      0  

    Default

    For that you will need to hook into some b4 methods (on the Ext.dd classes) to not allow drag/drop
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •