odrium
19 Dec 2011, 12:14 PM
I have the follwing problem. I have a form that have the 'fileuploadfield', but by "default" it appears in the form screwed!. It appears with two buttons and two input fields, but one of them working and the other not working:
30161
As you can see in the image, the only one that works is the "grey one".
This is the function that build this item:
buildBrowseFoto : function() {
return {
xtype : 'container',
layout : 'column',
anchor : '-10',
defaultType : 'container',
defaults : {
width : 300,
labelWidth : 80,
layout : 'form'
},
items : [
{
items : {
xtype: 'fileuploadfield',
emptyText: '',
fieldLabel: 'Foto',
buttonText: 'Selecciona una foto...',
name: 'foto'
}
}
]
};
}
This is a function inside a class that extends FormPanel. Maybe it seems weird to you, but this the way Jay García build forms and so do I :P.
30161
As you can see in the image, the only one that works is the "grey one".
This is the function that build this item:
buildBrowseFoto : function() {
return {
xtype : 'container',
layout : 'column',
anchor : '-10',
defaultType : 'container',
defaults : {
width : 300,
labelWidth : 80,
layout : 'form'
},
items : [
{
items : {
xtype: 'fileuploadfield',
emptyText: '',
fieldLabel: 'Foto',
buttonText: 'Selecciona una foto...',
name: 'foto'
}
}
]
};
}
This is a function inside a class that extends FormPanel. Maybe it seems weird to you, but this the way Jay García build forms and so do I :P.