09-13-2006
Item Renderers
Today I was working with a giant datagrid that has about 8 columns worth of data for each row. To make it more fun I have an ItemRenderer for each of these columns. In one column I need to display a box with a number in it and sometimes two. So I put in some logic to set the visible property to false when a certain object was “null”. As I was playing with the datagrid and scrolling it up and down I noticed that the second boxes started to dissapear when I scrolled up and down on the datagrid. I later made sure to set the visible property true when I needed to display the second box.
This leeds me to believe that Flex only creates the visible number of ItemRenders and then continues to just change the dataSource on each of those rendered items. Hopefully this will save somebody some headaches down the road.
Posted by Blake Bigelow in Flex 2 | RSS 2.0