Results 1 to 4 of 4

Thread: Focus on SelectField

  1. #1
    Sencha User
    Join Date
    Jul 2011
    Location
    Holland
    Posts
    98
    Answers
    2
    Vote Rating
    2
      0  

    Default Answered: Focus on SelectField

    Good day,

    I'd like to open the first SelectField automatically when the user opens a specific page. According to the manul, I could use the "focus" function. But this function doesn't seem to work on a SelectField.

    Does anyone know how to open a Selectfield, using code? Perhaps by simulating a click or touch..?

  2. Select fields don't really get focus. You could execute the showComponent method to accomplish what you want.

  3. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    Select fields don't really get focus. You could execute the showComponent method to accomplish what you want.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  4. #3
    Sencha User
    Join Date
    Jul 2011
    Location
    Holland
    Posts
    98
    Answers
    2
    Vote Rating
    2
      0  

    Default

    I forgot to say thank you. It works great now.

  5. #4
    Sencha User
    Join Date
    Jul 2011
    Location
    Holland
    Posts
    98
    Answers
    2
    Vote Rating
    2
      0  

    Default

    For everyonce information. This has become 'showPicker' in Sencha Touch 2.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •