Results 1 to 4 of 4

Thread: Focus on SelectField

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

    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 Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,451
    Answers
    3997

    Default

    Select fields don't really get focus. You could execute the showComponent method to accomplish what you want.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Fullstack Engineer
    ________________
    Modus Create is based on the model of an open source team. We’re a remote, global team of experts in our field. To find out more about the work we do, head over to our website.

    Check out my GitHub:
    https://github.com/mitchellsimoens

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

    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

    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
  •