PDA

View Full Version : Combobox EmptyText



Kcarpenter
30 Nov 2010, 1:39 PM
I cannot find a method to change the EmptyText property of a combobox. I am using the same form for several different things, and it would be nice if the combobox emptytext was specific to the task at hand, especially since I don't have them labeled.

cbox.setEmptyText() doesn't exist. and cbox.emptyText = "" doesn't work.

The only other thing I can really think to do is create different comboboxes and swap them out depending on the task. But this seems really convoluted... Any suggestions?:">

griffiti93
30 Nov 2010, 1:43 PM
Depending on the scope of the project and requirements, swapping out / injecting different combo boxes for specific tasks is not all that convoluted. You could setup your common config values. Then depending on task, use Ext.apply() to append the appropriate "emptyText" value.