I’m using Flash Builder 4.6 to create a schedule for the next 12 hours. The rows hold employees and the columns represent the hours. I want one GridItemRenderer that can be used by all cells to display the info appropriately.
I’m currently setting a GridItemRenderer in the GridColumn to try and accomplish this. I can get it to recognize data related to the row, but I can not get the renderer to recognize the column it is being applied to, so I can calculate if the current cell is between the start/end times for the current employee.
Any thoughts?
use “column” property in your item renderer.
I find the answer from this:
Flex: get column index in custom itemrenderer for spark datagrid
and tested, it’s ok.