Title: Mensagem
Hi Allen !
 
Thanks for your answer !
 
I tried to use a DataGrid and it's property of type DataProvider but I didn't have success. I got
a message saying that this kind of container cannot display visual components.
 
I will try do build my component in another way.
 
Thanks again !
Michel.
 
-----Mensagem original-----
De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome de Allen Manning
Enviada em: segunda-feira, 15 de agosto de 2005 16:07
Para: flexcoders@yahoogroups.com
Assunto: RE: [flexcoders] Dinamically adding itens to a grid

Hello Michael,

 

You should use the DataProvider API to get the databinding to fire.

 

HTH,

Allen

www.prismix.com/

 

 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michel Bertrand
Sent: 15 August 2005 19:25
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Dinamically adding itens to a grid

 

Hi all !

I'm new at the list and a new flex coder.

I'm trying to add GridRows to a Grid using the following code:

                        function addFilterCondition(){
                                var fieldName = new ComboBox();
                                var operation = new TextInput();
                                var condition = new TextInput();
                                var addButton = new Button();
                                var removeButton = new Button();
                                var row = new GridRow();
                               
                                row.createChild(mx.controls.ComboBox,"","");
                                row.createChild(mx.controls.TextInput,"","");
                                row.createChild(mx.controls.TextInput,"","");
                                row.createChild(mx.controls.Button,"","");
                                row.createChild(mx.controls.Button,"","");
                               
                                grid.createChild(row);
                                grid.layoutChildren();
                        }

I called the function above from a "click" event of a button, but no GridRow has
been add to the Grid. Did I miss something ? Is my code right ?

Thanks in advance !
Michel.
 




--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.10.9/72 - Release Date: 14/08/2005


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.10.9/72 - Release Date: 14/08/2005



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to