Dynamic ItemRenderer
i've racked brain find answer no avail. here goes:
i have datagrid 2 columns.
the first column has 1 of 2 values. we'll or b.
the 2nd column contains date values. there itemrenderer on column changes text color of date red if date past due.
if column 1 has value of a. want date in column 2 past due after 6 months.
if column 1 has value of b. want date in column 2 past due after 1 year.
now here's trick.
i image 1 of following 2 solutions work, i'm not sure how implement either:
1. call value 1st column inside .as itemrenderer column 2. then, write condition when itemrenderer change column 2 date color. know if doable?
or
2. there way dynamically assign itemrenderer column? then, use values column 1 determine itemrender assign.
feel pain?
i promise jump , down extreme joy if me figure out..
i have datagrid 2 columns.
the first column has 1 of 2 values. we'll or b.
the 2nd column contains date values. there itemrenderer on column changes text color of date red if date past due.
if column 1 has value of a. want date in column 2 past due after 6 months.
if column 1 has value of b. want date in column 2 past due after 1 year.
now here's trick.
i image 1 of following 2 solutions work, i'm not sure how implement either:
1. call value 1st column inside .as itemrenderer column 2. then, write condition when itemrenderer change column 2 date color. know if doable?
or
2. there way dynamically assign itemrenderer column? then, use values column 1 determine itemrender assign.
feel pain?
i promise jump , down extreme joy if me figure out..
the answer is:
data.column1datafieldname
column1datafieldname being datafield name column 1. whatever is.
data.column1datafieldname
column1datafieldname being datafield name column 1. whatever is.
More discussions in Flex (Read Only)
adobe
Comments
Post a Comment