Actually, I have a Datagrid with 2 RadioButton controls inside of a cell for each row. Something like this:
======================================================
| | | (o) Radiobutton #1 |
| cell #1 | cell #2 | (o) Radiobutton #2 |
======================================================
If I remove one row and add other one after this, Flex is automatically reusing the previously removed RadioButtons (to optimize resources I think).
Associating creationComplete
event handler to each RadioButton I confirmed my suspects:
- I create one row with 2 RadioButtons in an specific cell: both
creationComplete
handlers executes successfully. - I remove this row, and add another one.
- Now,
creationComplete
handlers didn't execute, so Flex is using the previously RadioButtons.
But I don't want this behaviour in my app. Is there any way to force Flex to create the components every single time (avoiding reuse)? Thanks!