PDA

View Full Version : How to add a TextField dynamicly on click to a specific form column?



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

Dumbledore
13 Jun 2007, 10:05 PM
Can somebody help:

I read the docu, i search the forum without any working results.

Look at the picture. When i click on the add-button i want to add a new row with the same fields. I can

ravyn23259
14 Jun 2007, 11:58 AM
Try taking a look at this thread:
http://extjs.com/forum/showthread.php?t=4423&p=21852

and adapting for your purposes...

Dumbledore
14 Jun 2007, 9:54 PM
before you wrote i search the forum but i didn

thesilentman
16 Jun 2007, 3:17 AM
Hi Dumbledore,

I have a similar form to make with adding formfields on a click of a button. Did you find any solution to this issue? I would be interested.
Thanks,
Frank

Dumbledore
16 Jun 2007, 6:02 AM
no, sorry....


i don