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

typicalItem isn't respected when changing dataProviders on a DataGroup

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Later
    • Adobe Flex SDK Previous
    • None
    • Spark: DataGroup
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Compile and run:

      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark">

      <s:controlBarContent>
      <s:Button label="1. clear data" click="group1.dataProvider = null" />
      <s:Button label="2. set new data" click="group1.dataProvider = new ArrayList([0,1,2,3])" />
      </s:controlBarContent>

      <s:DataGroup id="group1" typicalItem="-1">
      <s:itemRenderer>
      <fx:Component>
      <s:ItemRenderer creationComplete="trace(data)">
      <s:Label text="

      {data}

      " />
      </s:ItemRenderer>
      </fx:Component>
      </s:itemRenderer>
      <s:layout>
      <s:VerticalLayout useVirtualLayout="true" />
      </s:layout>
      <s:dataProvider>
      <s:ArrayList>
      <fx:Array>
      [0,1,2,3,4,5,6]
      </fx:Array>
      </s:ArrayList>
      </s:dataProvider>
      </s:DataGroup>

      </s:Application>

      2. Click clear data
      3. Click set new data

      Actual Results:

      trace output:

      -1
      0
      1
      2
      3
      4
      5
      6
      0
      0
      1
      2
      3

      Expected Results:

      trace output:
      -1
      0
      1
      2
      3
      4
      5
      6
      -1
      0
      1
      2
      3

      Workaround (if any):

      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: