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

  • Home
  • SEARCH
  • 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 3358172
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:43:13+00:00 2026-05-18T02:43:13+00:00

I am trying to drag and drop hierarchical data in the same advanced data

  • 0

I am trying to drag and drop hierarchical data in the same advanced data grid, and I would like the data provider to updated when the ADG is updated. (I want to be able to save and load this tree, so it is important that drags and drops are saved.)

I have a sample application (with view source enabled) posted here: http://www.crcarlson.com/adg/AdvancedDataGridDragAndDrop.swf

The sample app has an ADG showing hierarchical data as well as flat data. The first column of each datagrid shows the rowindex of the underlying data.

If you rearrange the items on the left ADG, the row indexes become unordered. If you click traceTree you see that the data provider is not in order.

On the other hand if you do the same on the right, the row numbers stay ordered even when the objects move around and if you click traceFlat, the data provider is in the order shown on ADG

My goal is to have the data provider order match the ADG order for the left grid which is displaying hierarchical data.

I would appreciate any advice on this, including “you can’t get there from here, do it this way.”

  • 1 1 Answer
  • 3 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-18T02:43:13+00:00Added an answer on May 18, 2026 at 2:43 am

    I noticed a few things while perusing your code and using the app:

    • Use an ArrayCollection instead of Array as the dataProvider for a view component whose data changes. This might solve your update problems.
    • If implementing an ArrayCollection doesn’t completely solve your update problems, add the necessary logic to a dragDrop or dragComplete event handler.
    • I get a runtime error every time I drag an item from adg to adgFlat.

    Here’s Adobe’s take on Using Drag and Drop. Specifically check out the last page titled “Moving and copying data”. Good luck to you.

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

Sidebar

Related Questions

I'm trying to implement drag and drop capability into a custom data grid control.
We're trying to implement drag and drop in Silverlight (3). We want users to
I'm trying to implement a drag-drop functionality for pre-honeycomb devices. I'd like to touch
I'm trying to understand how this drag/drop javascript example would be done in jquery.
I am trying out some Drag Drop functionalities and can't discern the difference between
I'm trying to implement drag/drop/sort between 2 list elements: <ul id=first> <li>item 1</li> <li>item
I'm experimenting with HTML5's Drag and Drop. I'm trying to drag an html button.
I'm trying to implement drag and drop behaviour between a bunch of ListViews. I've
I'm trying to implement drag and drop functionality in a Surface Application that is
I am trying to implement drag and drop for a treeview control that binds

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.