Sharing the Code

Programming stuff that might be useful to others

Tag: Flex

Custom Item Renderer in Flex

The documentation isn’t very good on how to create custom item renderers for things like data grids. Below is an example of a ‘blank’ one. You extend Canvas and implement IDropInListItemRenderer and update it’s appearence in the ‘data’ setter. Remeber to reset the visual state each time e.g. remove all children, since item renderers are reused in difference places of the parent component.

Read more