PDA

View Full Version : adding elements to form columns in mixed order



code_berzerker
31 May 2007, 12:47 AM
I've been searching for this on forum and havent found any answer.

consider this pseudo-code:



var frm = new Ext.form.Form();
var col1 = frm.column();
var col2 = frm.column();
var col3 = frm.column();
col1.add(some_content);
col2.add(some_content);
col3.add(some_content);
col1.add(some_content);
col2.add(some_content);
col3.add(some_content);



All I'd like to acomplish is adding one 'row' of for at a time. Is this possible?

tryanDLS
31 May 2007, 8:28 AM
Not sure if you're trying to nest containers or just populate 3 different ones at the same time. I don't think you can do this b/c calling add() just adds the field to the the active container - the last one to be opened. I think you have to extend Form to change how the active property manages the containers.