RSS
email

Dynamic itemRenderer in Flex



I was struggled last week about changing itemRenderer dynamically in flex...

at last its easy to change itemRenderer in actionscript..


import mx.core.ClassFactory;
Component.itemRenderer=new ClassFactory(RendererComponent);


here RendererComponent may be a mxml component ...or ActionScripr component..

if RendererComponent resides inside package mention it as com.somePackage.RendererComponent

Bookmark and Share

3 comments:

Anonymous said...

Great! saved my some hours! cheers!

jamiegau said...

Cool. useful.

Thanks,
James

 

Recent Posts

Recent Visitors

Donate Me

About Me

My photo
Chennai, Tamil nadu, India
Nothing more to say about me.. Just a Action Script programmer / Flex developer having 4.5 years of experience.