PDA

View Full Version : ComboBox lookup



urwitharup@yahoo.com
4 Aug 2009, 4:42 PM
Hello,

I want to implement interlinked ComboBox like you have a list of Countries and depends on country selection you will have set of states and so on. Is there any readymade GXT solution or api for this ? If you have come across this requirement, then please give ur inputs to me.

Regards
Arup

crazycatlady
5 Aug 2009, 9:59 AM
We had the same requirement so we created a widget that extends MultiField with two ComboBoxes. Then we added a Select listener to the first ComboBox so that when a country is selected, it will then do a query and populate the second box with the states for that country. An alternative to a multifield is a LayoutContainer with an HBox layout. It's simple, but it works.