tarsolya
17 Apr 2007, 5:45 AM
Is there a way to add more elements to a Form after it's render called?
For example, one of my forms has a button with a callback that does this:
/*
... Form code, finishing with a render() ...
*/
// f is the Form
function fooCallback() {
f.start( f.column(1) );
newField = new Ext.form.TextField({
fieldLabel: 'Test',
name: 'Testfield',
width: 175,
value: 'testvalue'
});
f.add( newField );
f.end();
}
But nothing happens, when I press the button .. however, the code runs without errors (debugged in Firebug), but the field doesn't show up.
Calling render() twice throws some errors.
I have a property list, which I want to expand by user interactivity. PropertyGrid is not good this time, it has to be a form. Is this possible currently with Ext's Form?
Regards,
Andr
For example, one of my forms has a button with a callback that does this:
/*
... Form code, finishing with a render() ...
*/
// f is the Form
function fooCallback() {
f.start( f.column(1) );
newField = new Ext.form.TextField({
fieldLabel: 'Test',
name: 'Testfield',
width: 175,
value: 'testvalue'
});
f.add( newField );
f.end();
}
But nothing happens, when I press the button .. however, the code runs without errors (debugged in Firebug), but the field doesn't show up.
Calling render() twice throws some errors.
I have a property list, which I want to expand by user interactivity. PropertyGrid is not good this time, it has to be a form. Is this possible currently with Ext's Form?
Regards,
Andr