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

Unable to force Tree Item Renderer to Update Display During a Drag and Drop

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK 4.0 (Release)
    • None
    • mx: Tree
    • None
    • Affected OS(s): Mac
      Affected OS(s): Mac OS 10.6
      Language Found: English

    Description

      See this post for ongoing discussion,
      http://stackoverflow.com/questions/3026298/how-can-i-force-a-tree-itemrenderer-to-redraw-during-a-drag-and-drop-operation

      and this post for background,
      http://forums.adobe.com/message/2091088

      Steps to reproduce:
      1. Declare an mx tree with dragEnabled, dropEnabled, and dragMoveEnabled set to true
      2. Declare an itemRenderer and override getCurrentRendererState method which appends 'AndDragOver' to the state. This is 'best practice' as described by the skin/component contract in Flex 4 help docs and is specifically discussed in this post http://forums.adobe.com/message/2091088 between Deepa Subramaniaman and Dave Cragg.
      3. During drag over event in tree, try to force the itemRenderer to redraw itself using validateNow, invalidateDisplay, invalidateSize, invalidateLayout, and tree.invalidateList (this should trigger a call to the itemRenderer's getCurrentRendererState method

      Actual Results:
      Item Renderer does not update its display. getCurrentRendererState is never called

      Expected Results:
      Item Renderer should refresh its display.

      Workaround (if any):
      Set the item renderer's currentState property directly.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: