flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raj U. Shaikh" <Raj.Sha...@mastek.com>
Subject RE: Changing Itemrenderer at runtime
Date Thu, 27 Mar 2014 11:52:19 GMT

IMO, You can write one class for item renderer which will have a plain group(HGroup/VGropu)
In that class, overridden set data/updatedisplaylist method you can decide what component
you want to create and append it to the group.
I used this technique to change item renderer based on data/runtime. (By the way this is how
dynamic component implemented!)

Raj Shaikh

-----Original Message-----
From: Patil, Virat [mailto:virat.patil@capgemini.com] 
Sent: Thursday, March 27, 2014 5:06 PM
To: users@flex.apache.org
Subject: Changing Itemrenderer at runtime


I have usecase wherein I need to change the itemrenderer in tree control at runtime.
Can somebody let me know if that is possible.

Virat Patil
This message contains information that may be privileged or confidential and is the property
of the Capgemini Group. It is intended only for the person to whom it is addressed. If you
are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate,
distribute, or use this message or any part thereof. If you receive this message in error,
please notify the sender immediately and delete all copies of this message.
In the US, we're called MAJESCOMASTEK

Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited,
unless specifically indicated to that effect. Mastek Limited does not accept any responsibility
or liability for it. This e-mail and attachments (if any) transmitted with it are confidential
and/or privileged and solely for the use of the intended person or entity to which it is addressed.
Any review, re-transmission, dissemination or other use of or taking of any action in reliance
upon this information by persons or entities other than the intended recipient is prohibited.
This e-mail and its attachments have been scanned for the presence of computer viruses. It
is the responsibility of the recipient to run the virus check on e-mails and attachments before
opening them. If you have received this e-mail in error, kindly delete this e-mail from desktop
and server.

View raw message