Which version of DataGrid are you using?

On 8/14/11 2:50 PM, "Sells, Fred" <fred.se...@adventistcare.org> wrote:






I’m trying to use styleName in a renderer like so

.payor1{
      fillAlphas: 1.0, 1.0;
      fillColors: #8c8c8c, #8c8c8c;
      color: red;
      roll-over-color: green;
      rollOverColor: green;
}
!

With this code in the DataGridItemRenderer.  Color is set OK, but I cannot get 
the rollover.  If I have the wrong property name, where would I find the 
definition of the right ones.

      override public function validateNow():void     {
            super.validateNow();
            if (data==null || data.resident__id=="0")             {
   !                background = false;
                  this.text = null;
                  this.styleName="";
                  ! return;
            }else{
                  this.text=""+data.name;
                  this.styleName = "payor"+data.payor;
                   background = true;
            }
      }






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui

Reply via email to