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