Currently we use a SelectItem where the user can pick from a predefined list (filled with setValueMap). The list to pick from is growing rapidly, so I want to change to a ComboBoxItem, allowing the user to type the first few charaters to filter the list. The user should however not be allowed to leave a value that is not in the predefined list. In my experience I never have to program anything like that on SmartGWT widgets because almost all functionality you can think of is pre-programmed. So I started looking for a method like setAllowCustomValues or something, but could not find one that I think I can use.
I also investigated the isOneOf validator, but the problem there is that I do not want to use the validateOnChange because I want the user to be able to enter some characters, not validate on every new character, and on this specific form (part of a wizard), the item is the only one so I cannot use validateOnExit (user cannot exit the widget ;) ).
Am I using the right widget to accomplish the described behaviour, and if so, how would you recommend to get the desired behaviour?
thanks,
Iwan
I also investigated the isOneOf validator, but the problem there is that I do not want to use the validateOnChange because I want the user to be able to enter some characters, not validate on every new character, and on this specific form (part of a wizard), the item is the only one so I cannot use validateOnExit (user cannot exit the widget ;) ).
Am I using the right widget to accomplish the described behaviour, and if so, how would you recommend to get the desired behaviour?
thanks,
Iwan
Comment