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




Reply via email to