PDA

View Full Version : refresh itemRenderers?


fx.barrett
04-22-2009, 01:49 PM
Ok, I'm full of problems these days...

I have my crappy FileSystemDataGrid ( as you might have already guessed ) that displays local files. The trick is that I'm using a custom renderer to display the file name and an icon before the name...

Now, if I navigate up or down in the System, then it seems that my item renderers are being reused ( that being the case with renderers in general ) but I have tried N ways to somehow refresh, delete the renderers so once I go up one level, the file names are displayed correctly and so are the icons...

Can someone please tell me how to refresh the renderers in the FileSystemDataGrid? I tried overridding the data property in the renderer component and stuff but no luck...

Thanks.

fx.barrett
04-22-2009, 01:56 PM
Hah, nevermind... Found a solution: http://thefactoryfactory.com/wordpress/?p=118