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

TileList items can not be clicked after changing the dataprovider to a nearly similar dataprovider

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK 2.0.1 (Release)
    • mx: TileList
    • None
    • Affected OS(s): Windows
      Affected OS(s): Windows XP
      Language Found: English

    Description

      Steps to reproduce:
      1. Create a TileList Control, give it a xml dataprovider like, use any custom ItemRenderer to display the image.

      <products>
      <product>
      <picture>test.png</picture>
      </product>
      <product>
      <picture>test2.png</picture>
      </product>
      <product>
      <picture>test3.png</picture>
      </product>
      <products>

      Then select the last item in the tilelist

      2. Then create another XML object which has similar nodes, but let's say one less (which could happen when you have deleted something with a database call and then reload all the items) and assign it to the dataprovider property (be sure to create a new one, changing the old one will work as suspected)

      <products>
      <product>
      <picture>test.png</picture>
      </product>
      <product>
      <picture>test2.png</picture>
      </product>
      <product>
      <picture>test3.png</picture>
      </product>
      <products>

      3. Now you can not click any of the items anymore

      Actual Results:
      You can not click any of the items anymore, the selectedItem / Index / selectionIndicator won't change

      Expected Results:
      You should be able to select the items as expected

      Workaround (if any):
      (I don't now any workaround for that, I tried several validation calls (validateNow and so on ...) but nothing helped.)
      I found a workaround, setting the dataprovider to null before assigning the new one will help, but I don't know if this is really a good thing to do.

      Other:
      I have tried to get rid of it but couldn't - it doesn't show up in List components but does in TileList so I think the bug is related to TileBase not ListBase class.

      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: