Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-32871

AdvancedDataGrid dropEnabled Target Fails When Using HierarchalData

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • Adobe Flex SDK 4.1 (Release)
    • None
    • ADG:Display
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Create an Application with the mx:AdvancedDataGrid component, feeding it hierarchical data
      2. Enable dropEnabled on ADG
      3. Create a List with a dataprovider feeding the same object type
      4. Set dragEnabled on List

      Actual Results:

      When dragging items from the list, the ADG content area does not accept the dragged item as a valid drop target.

      Expected Results:

      AdvancedDataGrid accepts the dragged item as expected.

      Workaround (if any):

      Subclass ADG and expose listContent (AdvancedListBaseContentHolder) as a public variable. Add a DragEnter event handler to the ADG, prevent the default event behaviour, and manually assign the publicly exposed listContent as the accepted drop target via DragManager.acceptDragDrop(). This will however prevent DragMove operations on the ADG if the event's default behavior is prevented, however.

      I've attached the workaround ... this behavior ONLY seems to happen when using hierarchical data. If given a flat ArrayCollection, all dragging operations behave as expected.

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: