Try:
*foobar.itemRenderer = new ClassFactory(MyRenderer)*
Simon
On 27 March 2014 11:56, Devesh Mishra <[email protected]> wrote:
> Share your findings.
>
> -----Original Message-----
> From: Patil, Virat [mailto:[email protected]]
> Sent: Thursday, March 27, 2014 5:19 PM
> To: [email protected]
> Subject: RE: Changing Itemrenderer at runtime
>
> Got it myself
> Assigned the default renderer at runtime.
>
> -----Original Message-----
> From: Patil, Virat [mailto:[email protected]]
> Sent: Thursday, March 27, 2014 5:06 PM
> To: [email protected]
> Subject: Changing Itemrenderer at runtime
>
> Hi
>
> I have usecase wherein I need to change the itemrenderer in tree control
> at runtime.
> Can somebody let me know if that is possible.
>
> Regards
> 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.
> MASTEK LTD.
> 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.
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
--
*flexmonkey.co.uk <http://flexmonkey.co.uk> | @FlexMonkey
<https://twitter.com/FlexMonkey> | +44 (0) 7973 669691*