PDA

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



gpandey
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?

Regards,
Gargi

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

gpandey
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.

laurentParis
17 Nov 2010, 6:44 AM
may be


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

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