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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:22:13+00:00 2026-05-30T12:22:13+00:00

I have an AdvancedDataGrid with editable parameter to true. My problem is that after

  • 0

I have an AdvancedDataGrid with editable parameter to “true”. My problem is that after a successfull drag & drop, the item is being edited and I don’t want this to happen.

I tried to create a custom advancedDataGrid with this:

override protected function dragCompleteHandler(event:DragEvent):void{
            trace("call dragCompleteHandler");
            super.dragCompleteHandler(event);
            clearAllSelection();
            selectedItem = null;
        }

But It doesn’t work and I just don’t know if I have to stop an event with preventDefault or something else. I also looked into the Adobe AdvancedDataGrid code and it seems that after a dragcomplete event there is nothing dispatched…

How can I stop this annoying edition (or focus) after a drag & drop?

EDIT 27/02/2012

The solution is to listen to DRAG_START and DRAG_COMPLETE events, in the constructor (or init function of the component):

addEventListener(DragEvent.DRAG_START,itemDragStartHandler);
addEventListener(DragEvent.DRAG_COMPLETE,itemDragCompleteHandler);

and :

protected function itemDragStartHandler(event:DragEvent):void
    {
        editable = "false";
    }

    protected function itemDragCompleteHandler(event:DragEvent):void
    {
        editable = "true";
    }
  • 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-05-30T12:22:14+00:00Added an answer on May 30, 2026 at 12:22 pm

    Try listening to the itemEditBeginning event. It is cancelable, so you can use preventDefault() to stop the editor from showing. You’ll probably need to store the items that have been dragged / are being dragged in order to prevent the edit event only when a drag & drop has occurred. I’m not sure in which order the itemEditBeginning and the drag & drop events are dispatched, so’ll need to experiment a little bit. Using trace is a good way to debug those events…

    Another solution I can think of is to set editable to false when the drag & drop starts and set it to true when the drag & drop is complete.

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

Sidebar

Related Questions

I have an AdvancedDataGrid with XML dataProvider. Drag and drop in enabled, and works
So, I have an AdvancedDataGrid that needs to live inside a Canvas. My problem
I have a AdvancedDatagrid with two columns lets say. First column has item renderer
I have flex advancedDataGrid (could use dataGrid if that works better, though i like
I have a problem with an AdvancedDataGrid; i want the fields Actual and Estimate
I have an AdvancedDataGrid that has a couple AdvancedDataGridColumnGroup's I would like each group
I have an AdvancedDataGrid being built dynamically from an html table. The html is
I have an AdvancedDataGrid that relies on a HierarchicalCollectionView as it's dataProvider. What I'd
I have an AdvancedDataGrid that loads data from a web service. It only loads
I have am using an mx:advanceddatagrid and I running into a problem with grouped

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.