PDA

View Full Version : How to disable Combo textfield, and bind the selection list expand to textfield



ci11111
27 Mar 2012, 9:59 AM
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

mitchellsimoens
27 Mar 2012, 12:14 PM
You can add a keydown listener:


listeners : {
inputEl : {
keydown : function(e) {
e.stopEvent();
}
}
}

You can allow certain keys with an if statement.

skirtle
27 Mar 2012, 7:45 PM
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