7 Nov 2012 7:22 AM #1
Answered: Focus on SelectField
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..?
Select fields don't really get focus. You could execute the showComponent method to accomplish what you want.
9 Nov 2012 4:59 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
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
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
11 Dec 2012 5:47 AM #3
I forgot to say thank you. It works great now.
24 Jul 2013 4:43 AM #4
For everyonce information. This has become 'showPicker' in Sencha Touch 2.