Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
WeWeaveDean #1
Cannot change datagrid item background colourdynamically
Hello, I am trying to change the background colour of a data grid item
dynamically.
I am using a component for each item with the item_renderer function
then in the component this is the line i am having trouble with
<mx:Canvas width="100%" height="100%" id="item_bg"
backgroundColor="{data.status_colour}">
data.status_colour is definatly set and has a hex value, #FF99CC for example
i tried
<mx:Canvas width="100%" height="100%" id="item_bg"
creationComplete="item_bg.setStyle("backgroundColo ur","{data.status_colour}")">
it did put colours on the but they were all in the wrong place, so a completed
item should be green but it is coming up with red (failed)
any ideas??
thanks
WeWeaveDean Guest
-
How to know if a datagrid item will be displayed in a datagrid with pagging
My problem is to know if a datagrid item will be displayed in a datagrid with paging. My dataset has hundreds of rows, of wich i'm only showing 5... -
Change background of Datagrid to transparent?
I have fumbled around for hours with this and Im about to strip the dam class file apart to change it, but I'd like to do this correctly. Not... -
Change style of a single row of the item list of datagrid, based on a field value of current item...
Sorry for the long subject guys, but I don't know how better I can resume the matter... Anyway, I have my datagrid showing items of an order. I... -
Change color of Item Template TextBox on Condition
1. I wantto change the color of a datagrid ItemTemplate TextBox in all the grid rows depending on radio button choice. 2. How can I do this in... -
Privileges to select an item from a combo box but not change the data
I have a form with various combo boxes that allow the user to select a item from the list and press a button to run a query. If the uses has...



Reply With Quote

