PDA

View Full Version : Empty item in ComboBox



SSchaefer
26 May 2008, 5:34 AM
Hi,
in addition to this problem (http://extjs.com/forum/showthread.php?t=36581), I need the possibility to let the user select null. A new ComboBox has null as SelectedValue, but once selected, you can't deselect the item. Changing or deleting the text has no effect to the SelectedValue.
At this Moment, I use an item with "" as value. But this is only 5px (I think) high. So you don't see it, if you don't know, it's there ;)
A flag to add a "null-item", which resets the SelectedValue, would be nice. I think, the flag ComboBox.setAllowBlank(true) is only for validation of forms, but it could be used for this too.

My versions:
GWT 1.5 M2 on Windows XP
Ext GWT 1.0 Beta 3

Thank you,
Steffen

zaccret
26 May 2008, 11:27 PM
At this Moment, I use an item with "" as value. But this is only 5px (I think) high. So you don't see it, if you don't know, it's there ;)

+1 for that issue.

franck34
2 Jul 2008, 8:15 AM
+1 for that issue too

interlock
2 Jul 2008, 11:59 AM
Have your tried a   display value? You could likely extend the combobox to support going to null when a blank value was set.