ComboBox values color change based on "if" condition
hello friends,
I need a small help from you guys. I am doing a simple combobox example. Now my requirement was, i want to differentiate the combobox values with some colors based on a condition.
Suppose for ex: if my combobox data value exceeds 200 i want to display the items in "red" else i want to display in "green". i need solutions for this requirment.
your help would be appreciated. i need it asap. kindly refer the attached image, that is what i am looking for. my output should look like that.
-------------------------
<?xml version="1.0" encoding="utf-8"?>
<!-- Simple example to demonstrate the Halo ComboBox control. -->
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
Looks like you made this in Flash Builder 4, so the best thing to do if you want the color of the data to change based on the value is to use a item renderer for the combo box.