PDA

View Full Version : [2.0a1][CLOSED] Disable FormPanel bug in IE 6



tg_s
10 Oct 2007, 5:51 AM
Problem: Disabling a FormPanel disables underlying fields in Firefox but not in IE 6.

Description: The FormPanel is greyed but TextFields can still be edited.



Ext.onReady(function() {
var content = Ext.get('content');
//
frm = new Ext.form.FormPanel({
renderTo: content,
items: [
new Ext.form.ComboBox({
store: new Ext.data.SimpleStore({
fields: ['fld'],
data: [['test1'], ['test2']]
}),
displayField: 'fld',
mode: 'local',
triggerAction: 'all',
selectOnFocus:true,
fieldLabel: 'Combo',
name: 'testCBx',
value: ' ...',
allowBlank: false
}),
new Ext.form.TextField({
fieldLabel: 'Text',
name: 'testTF',
allowBlank: false
})
]
});
frm.disable();
})

mystix
10 Oct 2007, 6:22 AM
13985

ext-base.js?

tg_s
10 Oct 2007, 6:25 AM
Sorry:

ext-base.js as well as ext-yui-adapter.js !

jack.slocum
10 Oct 2007, 10:08 AM
That's a disable function as defined by a base class. It is not enhanced by ormPanel. To disable the fields in a form, you will need to call disable on them.


formPanel.getForm().items.each(function(){
this.disable();
});

In the next build (beta1) it will do this for you automatically.