Results 1 to 2 of 2

Thread: dragging a treepanel node onto a regular panel

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Jan 2011
    Vote Rating

    Default Answered: dragging a treepanel node onto a regular panel

    How does one handle a drop event from a treepanel to a normal panel? I've seen many examples using treepanels to gridpanels, but nothing related to normal panels, which don't seem to have a special plugin.

    What I'd like to do is drag a leaf node from my treepanel onto another panel and have it fire some event with meaningful data (where it was dropped, the node info, etc.)

    I currently have code for the treepanel that looks like it would be draggable, but I can't find any examples of handling the actual drop.
                           viewConfig: {
                           allowCopy: true,
                           copy: true,
                               ptype: 'treeviewdragdrop',
                               dragGroup: 'dragGroup',
                               dragText: 'Drag into panel',
    I figured the code would look something like this, but I can't find any docs for handling the event or even if Panel needs a special plugin like treepanel and gridpanel do. I just want access to a function that fires when something is dropped onto the panel with the item info.
            var panel = Ext.create('Ext.panel.Panel', {
                           title: 'foo',
                           width: 200,
                           html: '<p>World!</p>',
                           viewConfig: {
                               dropGroup: 'dragGroup'
    Is there some existing function on the panel xtype I can just include or is it much more complicated then that? Thanks.

  2. Hi,

    you can see this link :

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