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 Chris From: Oleg Konovalov Sent: Thursday, October 23, 2014 1:57 PM To: dev@flex.apache.org 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 21:14, Oleg Konovalov <oleg...@gmail.com> wrote: > > > 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 > > > > > > -- > > João Fernandes >