Accessing Flex DataGrid ItemRenderers
I had an example recently of two DataGrids with custom itemRenderers. In a particular scenario when an item was clicked in grid one I needed to clear all checked values in a particular rowIndex in grid two. There is more than one way to skin a cat I know but my particular situation required the clearing to be performed within the custom itemRenderer itself using a method I defined named clear(). If you were to try and access a custom itemRenderer your gonna have problems casting the renderer to your custom renderer probably with an error like:
Error #1034: Type Coercion failed: cannot convert mx.core::ContextualClassFactory to …your custom renderer
Read on →