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

Can't bind to spark.components.supportClasses.ItemRenderer's labelDisplay property

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK 4.5 (Release)
    • None
    • Spark: DataGroup
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Create binding to ItemRenderer's labelDisplay property. For example:
      <?xml version="1.0" encoding="utf-8"?>
      <s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/mx">

      <s:states>
      <s:State name="normal" />
      <s:State name="hovered" />
      <s:State name="selected" />
      </s:states>

      <s:transitions>
      <s:Transition toState="normal">
      <s:AnimateColor target="

      {this.labelDisplay}

      " duration="300"/>
      </s:Transition>
      </s:transitions>

      <s:Label id="labelDisplay" color.hovered="0xCCCCCC" color.selected="0xFFFFFF"/>

      </s:ItemRenderer>

      Actual Results:
      Got a warning "data binding will not be able to detect asignments to 'labelDisplay'"

      Expected Results:
      no warning/errors

      Workaround (if any):
      make labelDisplay bindable

      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: