You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@royale.apache.org by Hugo Ferreira <hf...@gmail.com> on 2020/10/23 00:22:38 UTC
Add DataGridColumn at runtime
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 ?
Re: Add DataGridColumn at runtime
Posted by Hugo Ferreira <hf...@gmail.com>.
Thank you all, solved.
Carlos Rovira <ca...@apache.org> escreveu no dia sexta, 23/10/2020
à(s) 11:37:
> 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 (<gr...@gmail.com>)
> 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 <hf...@gmail.com>
> > 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
>
Re: Add DataGridColumn at runtime
Posted by Carlos Rovira <ca...@apache.org>.
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 (<gr...@gmail.com>)
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 <hf...@gmail.com>
> 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
Re: Add DataGridColumn at runtime
Posted by Greg Dove <gr...@gmail.com>.
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 <hf...@gmail.com>
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 ?
>