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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T03:34:15+00:00 2026-06-04T03:34:15+00:00

I have a simple test example that works fine, I set the drag/drop properties

  • 0

I have a simple test example that works fine, I set the drag/drop properties to true like this: <s:List dragMoveEnabled="true" dragEnabled="true" dropEnabled="true">

The difference from the test application that works and my real application is that the layout on the real app is more complex (I am using ViewStacks and Groups) and the dataProvider. In all cases I use ArrayCollection but in the real app I have some SearchResults objects (these are not dynamic objects).

Dragging animation is there but when dropping, the item under the mouse is selected instead.
If I do not set dragMoveEnabled then the item is somehow copied, but in its place I see an Object.

//Working example

<s:List dragMoveEnabled="true" dragEnabled="true" dropEnabled="true">
        <s:dataProvider>
            <s:ArrayCollection>
                <fx:Object label="Item 1" data="1" />
                <fx:Object label="Item 2" data="2" />
                <fx:Object label="Item 3" data="3" />
            </s:ArrayCollection>
        </s:dataProvider>
    </s:List>

This is from my application and is not working

<s:List id="favSavedSearchesList" width="100%" height="100%"  
        contentBackgroundColor="#dfe4ea"  
        change="favSavedSearchesList_changeHandler(event)"
        itemRenderer="generic_components.RemoveItemRenderer"
        dragMoveEnabled="true" dragEnabled="true" dropEnabled="true"/>

Update:
I made some tests and replaced my dataProvider with an ArrayCollection of Strings and it worked, so I can now exclude the complex layout of the application and looking at the provider

  • 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-04T03:34:17+00:00Added an answer on June 4, 2026 at 3:34 am

    I found the problem by debugging the drop handler of the List. The problem was caused by the fact the dataProvider had a sort set, if you have sorted the ArrayCollection or the Array used to create the dataProvider then the dragMove is ignored.

    Second issue is my Array was obtain by reading from a sqlite database and I did not set a sort on it in code or in the SQL query so the sorting thing was unexpected for me.

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

Sidebar

Related Questions

I have a simple SQLCMD script that includes some lines like this: /* Load
I have a simple test application (C# console application) that does an HTTP GET
I have this simple test project just to test the IncludeExceptionDetailInFaults behavior. public class
I have taken this example test before I'll try to take the real one
I often use simple Chinese phrases like 你好 to test that my code can
This is a pretty simple problem. Inserting data into the table normally works fine,
I have a set of tests, and I want to test that my classes
Update : Added simple test example http://jsfiddle.net/7UhrW/1/ using normalize.css. Chrome/WebKit and Firefox have different
I have created a simple test form with FormBorderStyle = FixedToolWindow by default and
I have a simple unit test case (extensive question here ) on a configuration

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.