This entry was posted on Wednesday, April 16th, 2008 at 2:53 am and is filed under Quick Fix. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Dynamic Itemrenderer, reload when data changed
I had some troubles to re-load my itemrenderer. When the dataprovider of your collection (Tilebase or whatever) chage, the itemrenderer of exists items does not re-init, if your code is in creationComplete event. Finally I found a solution:in your itemrenderer file, on the creationComplete handler, add:
this.addEventListener(FlexEvent.DATA_CHANGE, dataChanged);dataChanged();
Then, in the dataChange function, you can do whatever you want for your itemrenderer when your dataprovider change.Hope this will help someone.
Posted by April 16th, 2008
Comments (3)
November 10th, 2008 at 1:51 am
This is exactly what i m looking for!
Thanks (from China)!
February 19th, 2009 at 11:17 am
thanks dude… you have saved me some time…and workarounds… I hate crappy workarounds… ;)
May 28th, 2009 at 6:19 pm
hey men u save me for losing te final soccer game1!!! thanks!!