-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
I want to make all combobox with an empty item as the first option. I tried several ways but still have not luck.
I overrided the Class Combobox and added an initialization block
{
Comboitem d = new Comboitem(nullLabel);
d.setValue(null);
appendChild(d);
}
It works only for non auto-binding type. Is there any way to add a default empty item in
<combobox id="providerCombobox" readonly="true"
model="@{composer.providers}" >
Anyone can share me a suggestion? Thanks!
Stephen
I have the same issue. How can i allow the user to go back to blank choice in a combobox?
With the default component once he picked something he cannot go back to blank. I'm using an Enum value as my model so can't create a fake empty item.
I'm using MVVM
Asked: 2012-09-27 09:54:37 +0800
Seen: 79 times
Last updated: Jun 06 '15