Re: Conditional renderer in MXML

2014-10-29 Thread windowns
I think to do what ya want, you will need to use the itemRenderer property and set it to a new instance of ClassFactory which in turn references the itemRenderer that you want to use. See this as an example http://stackoverflow.com/questions/8518206/dynamic-itemrenderer-for-flex-datagrid Ch

Re: Conditional renderer in MXML

2014-10-23 Thread Oleg Konovalov
It is in Flex3 ADG... Still doable? On Oct 22, 2014 5:29 PM, "João Fernandes" < joaopedromartinsfernan...@gmail.com> wrote: > If using a Spark datagrid you can try on the gridColumn the > itemrendererFunction to define on the fly which ItemRenderer Factory should > be used. > > On 22 October 2014

Re: Conditional renderer in MXML

2014-10-22 Thread João Fernandes
If using a Spark datagrid you can try on the gridColumn the itemrendererFunction to define on the fly which ItemRenderer Factory should be used. On 22 October 2014 21:14, Oleg Konovalov wrote: > Hi, > > I am need to implement conditional logic for renderer in MXML > ADGRenderProvider, something

Conditional renderer in MXML

2014-10-22 Thread Oleg Konovalov
Hi, I am need to implement conditional logic for renderer in MXML ADGRenderProvider, something like: if (condition1) renderer = renderer1 else renderer=renderer2 How can I do that? TIA, Oleg