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 8405599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:53:20+00:00 2026-06-09T22:53:20+00:00

I am setting up a custom drag and drop implementation with treepanels, where I

  • 0

I am setting up a custom drag and drop implementation with treepanels, where I want all nodes to attach to a node I have created under the root. I am trying to drag one node from one treepanel to the other in a certain way. I am able to move the item over, but run into trouble when removing it from the other side.

Here is my code, this is within my treepanel:

viewConfig:{
 plugins:{
  ptype:'treeviewdragdrop',
  DDgroup:'treeDD'
 },

 listeners:{
    beforedrop: function(node, data, dropRec, dropPosition){
      if(dropRec.parentNode.data.text == "Root"){
        console.log('dropping on top level');
        this.up('panel').getStore().getRootNode().getChildAt(0).insertChild(0, data.records[0].data);
        //the below line seems to be causing the error, how should I be removing?
        choicesTree.getRootNode().getChildAt(0).removeChild(data.records[0]);
        //choicesTree is previously defined
        return false;
      }
}

This manages to removed the item from the first treepanel, but immediatly gives the following error:

item is null
fly(item.firstChild).highlight(me.repairHighlightColor, {
  • 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-09T22:53:21+00:00Added an answer on June 9, 2026 at 10:53 pm

    The return false is causing the issue in the code. return 0 also doesn’t work as the docs describe. The code is not working due to bugs in version 4.07 of extjs the code works as expected in version 4.1

    From the documentation: Returning false to this event signals that the drop gesture was invalid, and if the drag proxy will animate back to the point from which the drag began. Returning 0 To this event signals that the data transfer operation should not take place, but that the gesture was valid, and that the repair operation should not take place. Any other return value continues with the data transfer operation.

    The above behavior from the docs is different from what occurs

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

Sidebar

Related Questions

I would like to read custom setting which i have done in ServiceConfiguration.cscfg &
I have a application for android 2.3.3 where I am setting some custom titles
I have a number of UIButton s and I'm setting a custom font on
I have four imageview in sequence on a screen setting with custom background images.
From my understanding of PHP documentation, setting custom error handler (which cannot catch all
I am setting a custom session in the catalog/controller/checkout/cart.php controller. All it does, it
I have an application where I need to have a custom setting page. In
I want to have a custom cursor while moused over the Google Maps component
I have a modular Sinatra app. I'm setting some custom variables in my configure
Is there a MSBuild task for setting custom attribute in AssemblyInfo.cs? I found AssemblyInfo

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.