View Full Version : SimpleComboBox rendered in CellEditor setEmptyText doesn't work

13 Apr 2012, 1:40 PM

I am using your "Editable Grib" example in a part of my application. I got it mostly working for what I need, but I'm having an issue where the SimpleComboBox(es) in the Grid don't have a default value, and setEmptyText does not work no matter how I set it.

Is it supposed to not work like that? How can I set a default value like setEmptyText in SimpleComboBoxes that are rendered in the CellEditor/EditorGrid?

I am using GXT 2.2.4..

Thanks Tim

16 Apr 2012, 3:38 AM
Empty texts will not be displayed when using fields in grids.
For displaying a text for your field empty value within grids, you need to use a grid renderer.
Check for your empty/null value, and then in the renderer, return what your empty text.

16 Apr 2012, 10:51 AM
awesome thank you! ill give it a try and report back soon!

18 Apr 2012, 9:57 AM
Please set this question to answered. I was able to do what was needed with GridCellRenderer.

Thanks again!