I think there's already an example in TDJ Datagrid page examples at the end
El vie., 23 oct. 2020 a las 2:28, Greg Dove (<[email protected]>) escribió: > I am not sure it works like that in Flex. > I suggest you try > var cols:Array = dgSearch.columns; > cols.push(column); > dgSearch.columns = cols; > > I can't recall if that works or not, but (ultimately, if it does not yet) > it should. > > > > > On Fri, Oct 23, 2020 at 1:23 PM Hugo Ferreira <[email protected]> > wrote: > > > Hi, > > > > I have a Jewel DataGrid in mxml and I need to add a column at runtime, > so I > > tried this: dgSearch.columns.push(column); > > There is no effect and not errors at all. > > This is how I do in Flex. > > > > I'm doing it wrong in Royale ? > > Or the DataGrid must be done 100% in mxml or 100% in AS ? > > > -- Carlos Rovira Apache Member & Apache Royale PMC *Apache Software Foundation* http://about.me/carlosrovira
