View Full Version : ComboBox with clear

1 Dec 2014, 8:45 AM

Have anyone implemented a comboBox wich show a clear button as well (twin trigger) in GXT 3?

I've done this LONG ago, in GXT2

But now, I would like to port this to GXT3. Problem is I don't know exactly how to do that in GXT3.
Can someone please shed some light on me?


Andreas Samjeske
2 Dec 2014, 3:51 AM
We came up with another solution: Where needed, we added an empty entry to the list of choices.
Some difficulties arose:
- Emptystring as display name for the empty entry leads to an entry in the list, which has a smaller height than the other entrys. Solution: pattern for list entrys adds a sinlge blank (nbsp;) to each entry.
- Depending on type of Combobox, change to empty entry is a change to null. ValueChange might not fire.

2 Dec 2014, 3:56 AM
Unfortunatelly that is not an option for me. I really need the clear button, to have the same look and feel as we had when using gxt 2.