Results 1 to 3 of 3

Thread: How to disable Combo textfield, and bind the selection list expand to textfield

  1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    253
    Vote Rating
    0
      0  

    Default How to disable Combo textfield, and bind the selection list expand to textfield

    Sorry, may be 2 things separated, but there's maybe already a config for doing that,

    Actually I need a pure Select field, but there are no such component in ExtJs, anyway the combobox with such features will do exactly what I want

    thanks for the help

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,381
    Answers
    3997
    Vote Rating
    1536
      0  

    Default

    You can add a keydown listener:

    Code:
    listeners : {
        inputEl : {
            keydown : function(e) {
                e.stopEvent();
            }
        }
    }
    You can allow certain keys with an if statement.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

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

  3. #3
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,791
    Answers
    585
    Vote Rating
    394
      0  

    Default

    I'm not really clear what you're asking for but I suspect you may want editable: false.

    You might find this article useful, it covers some of the basic config options:

    http://skirtlesden.com/articles/extjs-comboboxes-part-1

Posting Permissions

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