Forum /
Sencha Touch 1.x Forums /
Sencha Touch 1.x: Discussion /
SelectField tabIndex
SelectField tabIndex
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,
Matt
Last edited by matt5hansen; 28 Apr 2011 at 8:40 PM .
Reason: clarity
A quick fix...
A quick fix...
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
this.onMaskTap();
//blur to hide the keyboard
this.blur();
}
});
Ext.reg('customselectfield', Ext.form.CustomSelect);
Similar Threads
By sapna_kotresh in forum Sencha Touch 1.x: Discussion
Replies: 12
Last Post: 1 Sep 2011, 3:06 AM
By profunctional in forum Sencha Touch 1.x: Discussion
Replies: 1
Last Post: 17 Mar 2011, 8:36 PM
By raul007 in forum Sencha Touch 1.x: Discussion
Replies: 0
Last Post: 13 Dec 2010, 3:32 AM
By douggiefox in forum Ext 3.x: Help & Discussion
Replies: 4
Last Post: 2 Mar 2010, 5:19 AM
By moegal in forum Ext 2.x: Help & Discussion
Replies: 1
Last Post: 12 Jan 2009, 5:11 AM
Tags for this Thread
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us