PDA

View Full Version : [UNKNOWN][3.1] DateField/ComboBox etc readOnly cause the trigger disappear



smartree
30 Dec 2009, 2:08 AM
DateField/ComboBox readOnly cause the trigger disappear

/ext-3.1.0/examples/form/xml-form.html
xml-form.js line from 77


new Ext.form.DateField({
fieldLabel: 'Date of Birth',
name: 'dob',
readOnly: true,
width: 190,
allowBlank: false
})
Try it, you will reappear the problem

useage changed ---- TriggerField editable

smartree
30 Dec 2009, 8:06 PM
If this is a improvement for the readOnly style, how can I to do that keep user from editing the combobox or datefield, but allow user choose from the combo list or date trigger panel?


yeah, TriggerField
editable: Booleanfalse to prevent the user from typing text directly into the field, the field will only respond to a click on the tri...
false to prevent the user from typing text directly into the field, the field will only respond to a click on the trigger to set the value. (defaults to true).


Why not put it in CHANGES_ext-3.1.0.html?