View Full Version : Combox with Text ahead true and editable false?

17 Nov 2010, 2:16 AM
I have a requirement in which type ahead has to be true and editable false for a combo box , because user should not be able to enter any value other then from the data store. Is it possible?


17 Nov 2010, 5:13 AM
I use the forceSelection: true to achieve this.

17 Nov 2010, 5:45 AM
Thanks for the reply.
I tried the following :-
editable: false,
forceSelection: true,
typeAhead: true,

It didnt allow the user to enter any value.

If i try only :-
forceSelection: true,

then user can enter the value.But user can enter values which are not present in the drop down. Hence the value of the field will be empty.

17 Nov 2010, 6:44 AM
may be

editable: true,
typeAhead: true,
forceSelection: true,
allowBlank: false,

17 Nov 2010, 9:19 PM
This will make the field mandatory, which is not the requirement . :(