View Full Version : SelectField tabIndex

28 Apr 2011, 8:37 PM
Hi All,

I'm a bit of a noob, so I hope to be forgiven for that ;)

When I set the tabIndex property on a selectfield form element, the selectfield element text is selected when a user tabs to that field.

What I was hoping for, was to show the selectfield display/selector.

I understand I can remove the tabIndex, and would be fine, except on Android 2.3 (not sure about other versions, it ignores the tabIndex property.

Is there a way to pop up the selectfield display when the field receives focus?

Thanks for any help or ideas,


30 Apr 2011, 9:16 PM
This isn't perfect, but it at least keeps the field un-editable, and prevents the keyboard from appearing on Android devices:

Ext.form.CustomSelect = Ext.extend(Ext.form.Select, {
onFocus: function(e) {
// just hijacking focus and calling tap
//blur to hide the keyboard
Ext.reg('customselectfield', Ext.form.CustomSelect);