-
23 Jan 2012 11:46 AM #1
[4.1 B1] Not jumping to proper scroll position in combo w/ editable = false
[4.1 B1] Not jumping to proper scroll position in combo w/ editable = false
When "editable" is false on a combo box, I am unable to utilize the standard select control feature of jumping to the first entry with a matching character.
Here is a sample, try typing b or c to jump down and it does not work:
Code:<html> <head> <title>Combo test</title> <link rel="stylesheet" type="text/css" href="extjs/resources/css/ext-all-gray.css"> <script type="text/javascript" src="extjs/ext.js"></script> <script type="text/javascript" > Ext.onReady(function() { var parent = Ext.create('Ext.panel.Panel', { title: 'Parent', width: 1000, height: 800, items: [ Ext.create('Ext.form.field.ComboBox',{ width: 234, valueField: 'companyName', displayField: 'companyName', editable: false, queryMode: 'local', listConfig: { maxHeight: 200 }, store: Ext.create('Ext.data.ArrayStore',{ fields: [ { name: 'companyName', type: 'string' } ], data: [ ['a'],['a'],['a'],['a'],['a'],['a'],['a'],['a'],['a'],['a'],['a'],['a'], ['b'],['b'],['b'],['b'],['b'],['b'],['b'],['b'],['b'],['b'],['b'],['b'], ['c'],['c'],['c'],['c'],['c'],['c'],['c'],['c'],['c'],['c'],['c'],['c'] ] }) }) ], renderTo: Ext.getBody() }); parent.show(); }); </script> </head> <body> </body> </html>
-
23 Jan 2012 2:44 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,684
- Vote Rating
- 435
According to the docs, editable does:
The filtering ("jumping") of the list won't happen because you can't type anything into the field.False to prevent the user from typing text directly into the field; the field can only have its value set via selecting a value from the picker. In this state, the picker can also be opened by clicking directly on the input field itself.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.
-
24 Jan 2012 5:02 AM #3
Well normal select boxes have this feature, even though you aren't typing anything into the field.
See:
http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_option
-
25 Sep 2012 10:37 PM #4
Combox editable design
Combox editable design
Hi guys
I am in a puzzle about this case too.
Is there anyone can give some advices?
Thank you.
Looks like we can't reproduce the issue or there's a problem in the test case provided.


Reply With Quote