1. #1
    Sencha User
    Join Date
    Apr 2011
    Posts
    3
    Vote Rating
    0
    matt5hansen is on a distinguished road

      0  

    Default 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

  2. #2
    Sencha User
    Join Date
    Apr 2011
    Posts
    3
    Vote Rating
    0
    matt5hansen is on a distinguished road

      0  

    Default 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

  1. Need help in selectfield
    By sapna_kotresh in forum Sencha Touch 1.x: Discussion
    Replies: 12
    Last Post: 1 Sep 2011, 3:06 AM
  2. how do i get the count of a selectfield?
    By profunctional in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 17 Mar 2011, 8:36 PM
  3. selectfield
    By raul007 in forum Sencha Touch 1.x: Discussion
    Replies: 0
    Last Post: 13 Dec 2010, 3:32 AM
  4. TabIndex
    By douggiefox in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 2 Mar 2010, 5:19 AM
  5. Can I get id by tabIndex?
    By moegal in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 12 Jan 2009, 5:11 AM

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar