Title: 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.
 





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




SPONSORED LINKS
Computer software testing Macromedia flex Development
Software developer


YAHOO! GROUPS LINKS





--
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

Reply via email to