用Flex4,hibernate,spring 做项目,现在碰到一个问题:在界面上显示:
  警告名   警告数量
    a          0
    b         2
    c         3
    d         4
  比如当第三行中的警告数量大于0时,该行的背景颜色呈红绿交替出现,为0是就为默认背景颜色,部分代码:
<mx:DataGrid id="dataGridType" width="100%" height="95%" >
<mx:columns>
<mx:DataGridColumn dataField="id" visible="false" headerText="警告ID" backgroundColor="#F21212"/>
<mx:DataGridColumn dataField="name" minWidth="200" headerText="警告类型"/>
<mx:DataGridColumn dataField="cnt" headerText="警告数量" textAlign="right"/>
</mx:columns>
</mx:DataGrid>
界面上的数据每隔一分钟刷新一次。
求高手解答,谢谢!