Results 1 to 4 of 4

Thread: [4.1 B1] Not jumping to proper scroll position in combo w/ editable = false

    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User Sharkanana's Avatar
    Join Date
    Nov 2011
    Location
    Charlotte, NC
    Posts
    41
    Vote Rating
    0
      0  

    Default [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>

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,336
    Vote Rating
    1296
      0  

    Default

    According to the docs, editable does:

    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.
    The filtering ("jumping") of the list won't happen because you can't type anything into the field.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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 in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User Sharkanana's Avatar
    Join Date
    Nov 2011
    Location
    Charlotte, NC
    Posts
    41
    Vote Rating
    0
      0  

    Default

    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

  4. #4
    Sencha User
    Join Date
    Feb 2012
    Posts
    36
    Vote Rating
    0
      0  

    Default Combox editable design

    Hi guys

    I am in a puzzle about this case too.
    Is there anyone can give some advices?

    Thank you.

Tags for this Thread

Posting Permissions

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