-
28 Feb 2012 7:02 AM #1
Answered: SearchField in form panel is not treated like a html searchfield on iPhone or Android
Answered: SearchField in form panel is not treated like a html searchfield on iPhone or Android
Hello, can someone please help me? I have defined a search field in a form panel, but when I test my app by tapping on the search field on my iPhone or Android a keyboard shows up, but without any search key. What must I do to let show a search key instead of an enter key on the keyboard of the smartphone in case of using search field?
Code:Ext.define('Test.controller.Main', { extend : 'Ext.app.Controller', init : function() { this.control({ 'searchfield' : { action : 'onSearch' } }); }, onSearch : function(field) { console.debug('onSearch'); } }); Ext.application({ name : 'Test', controllers : ['Main'], launch : function() { new Ext.form.Panel({ fullscreen : true, items : [{ docked : 'top', flex : 10, xtype : 'searchfield', name : 'search', label : 'search' }] }); } });
-
Best Answer Posted by mitchellsimoens
What version are you using as this shows the Search button in the keyboard:
Code:new Ext.form.Panel({ fullscreen : true, items : [ { xtype : 'searchfield' } ] });
-
28 Feb 2012 3:30 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,599
- Vote Rating
- 434
- Answers
- 3102
What version are you using as this shows the Search button in the keyboard:
Code:new Ext.form.Panel({ fullscreen : true, items : [ { xtype : 'searchfield' } ] });Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
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 services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
29 Feb 2012 1:01 AM #3
I am not sure but i think sencha-touch-2-b1
I am not sure but i think sencha-touch-2-b1
I am not sure but I think sencha-touch-2-b1, is that the wrong one?
-
29 Feb 2012 2:22 AM #4
Upgrade to sencha-touch-2- rc solved the problem.


Reply With Quote