ComboBox initialization with default value

January 8th, 2009
Jack, first of all, greatly thank you for all your efforts bringing this wonderful framework.

On trying it out, we ran into a situation where a ComboBox need to be initialized with single default record (hidden valueField, and displayField). Please see post http://extjs.com/forum/showthread.php?t=14740 for details.
We are looking for an elegant solution like below. Mr.Jsakalos suggested a new feature request:

1. Besides currently supported setValue(), which sets the valueField (i.e. 123), ComboBox can provides API to set the displayField (i.e. Shamlin Nellie). For now, if you simply call setValue('123'), the combo shows the valueNotFoundText, because the combo has blank list.

2. setValue() first look into the combo list. if it is blank, run a query, which can be configured, to fetch the displayField (Shamelin Nellie) from the server. We have been researching on allQuery, but it does not seem to work this way.

Any suggestion is greatly appreciated.




#If you have any other info about this subject , Please add it free.#
Your name:
E-mail:
Telphone:

Your comments:


If you have any other info about ComboBox initialization with default value , Please add it free.