Dumbledore
13 Jun 2007, 3:39 AM
Hi,
i have a form with four columns and a button. When i click on the button i want to add a TextField to a specific column of my form. I try the following but no field appears:
var testfield = new Ext.form.TextField({
autoCreate:true,
fieldLabel: 'test',
labelWidth:0,
name: 'test123',
id:'test123' ,
width:175
})
// Here i get the id of the column
var myColumn = Ext.get('clm_tr');
Ext.DomHelper.append(myColumn, testfield);
i have a form with four columns and a button. When i click on the button i want to add a TextField to a specific column of my form. I try the following but no field appears:
var testfield = new Ext.form.TextField({
autoCreate:true,
fieldLabel: 'test',
labelWidth:0,
name: 'test123',
id:'test123' ,
width:175
})
// Here i get the id of the column
var myColumn = Ext.get('clm_tr');
Ext.DomHelper.append(myColumn, testfield);