I need to draw an overlay over a datagrid cell. I want the overlay to sit ontop of the underlying cell data and to display a crosshatch pattern ie: horizontal and vertical lines, like a mini-grid in the cell.
The idea of the overlay is to show that when no data has been received for a while then the data has become old or stale.
I’m pretty sure I need to do something in the updateDisplayList() of the renderer, but I haven’t used the Drawing API so I am not sure how to do this.
Any help would be greatly appreaciated.
Thanks
Mark
So I suppose you have 2 states for the ItemRenderer, one called “new”, one “old”, right?
One good news: You don’t need to override updateDisplayList function. Flex SDK 4+ provides you graphics utility named FXG. You can visit this link for more information: http://help.adobe.com/en_US/flex/using/WS145DAB0B-A958-423f-8A01-12B679BA0CC7.html
In your case, you can do something like this:
Idea: Create a path (draw your grid) and put it in state “old”, whenever the item change to state “old”, the grid will appear.