nikhilbchilwant / google-web-toolkit-incubator

Automatically exported from code.google.com/p/google-web-toolkit-incubator
1 stars 1 forks source link

DropDownListBox needs clear() method #332

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
If you want to see this feature/enhancement implemented, please star this 
issue by clicking on the star in the upper left hand corner of this page.

== Enhancement Description ==

When using the DropDownListBox and UiBinder, it is not possible to clear the 
DropDownListBox.  When UiBinder is not being used, a new DropDownListBox can 
be created to replace the currently populated one.  However when using 
UiBinder this is not possible(?).

Original issue reported on code.google.com by nix...@gmail.com on 25 Jan 2010 at 3:03

GoogleCodeExporter commented 9 years ago
Replacing the DropDownListBox with a new one every time is not easy when you 
have
handlers hooked up to it's events.  It would be much better (and consistent with
other widgets) if there was a clear function available.

Original comment by bes...@gmail.com on 12 Feb 2010 at 4:09

GoogleCodeExporter commented 9 years ago
Can we have any alternative to clear the items in DropDownListBox? It took a 
lot of pain to decide the type of widget and when implemented, at the end 
point, came to know that you cant remove/clear item/items from the widget. I 
tried using JSNI as well but it dint work. May i at least know what tag name 
'?' i shall look for getting the element. I tried with 'select' 'option' and 
the combination, none of them seemed to work.

Any help will be appreciated.

Original comment by Nawal.on...@gmail.com on 24 Jan 2012 at 7:14