Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8341123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T05:22:36+00:00 2026-06-09T05:22:36+00:00

Using Extjs 4.07 Assume I have two treePanels or, more likely, two grids. I

  • 0

Using Extjs 4.07

Assume I have two treePanels or, more likely, two grids. I want to be able to drag items back and forth between the two. What are the basic mechanisms required to do this? I’d liek to see some sample code demonstrating how it is done. I’ve not been able to find good documentation on how to do this that is applicable to v4 and not v3. I know there is an easy way and I’ve found many documents explaining bloated ways of doing this. I don’t understand how dd is implemented in general. So, a high level overview would be useful as well.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T05:22:38+00:00Added an answer on June 9, 2026 at 5:22 am

    A grid had a DragDrop plugin, while a tree has TreeViewDragDrop plugin.

    If you want to drag from, to, or within your grid or tree, you include the plugin. In the case of a grid it will look something like this:

    Ext.create('Ext.grid.Panel', {
    
        ...
    
        viewConfig: {
            plugins: {
                ptype: 'gridviewdragdrop',
                dragText: 'Drag and drop to reorganize'
            }
        },
    
        ...
    
    });
    

    Once the plugin is included, you get drag and drop events from the component, to which you can listen. To complete the example above.

    Ext.create('Ext.grid.Panel', {
    
        …
    
        viewConfig: {
            plugins: {
                ptype: 'gridviewdragdrop',
                dragText: 'Drag and drop to reorganize'
            },
    
            listeners: {
                drop: function(node, data, dropRec, dropPosition) {
                    // Do something here.
                }
            }        
        },
    
        …
    
    });
    

    You can see this fully working in this example, and its corresponding code.

    To the best of my knowledge, nothing has changed on this front between 4.07 and 4.1;

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using ExtJS (v3) and I have a form built that I want
I am using ExtJS 4. I have created a tree panel as var treeStore
I'm using extjs mvc style to create a web application. I don't have any
I am using ExtJS to load data to a grid, and I want to
I'm using ExtJS 2.2.1 In my web app, I used to have a TreePanel
I'm using ExtJS 3.2 and have content inside of a tab panel, and the
I'm using extjs and just trying to solve a simple problem: I have a
I want to know if we can create reports using EXTJS. Thnx a lot
I'm using ExtJS 3. I have a formPanel with many cloned fields and I
I am using extjs grid, and I have a jQuery timer, which will call

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.