ComboBox initialization with default value
January 8th, 2009
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.# |
Posted in freedeadaim.com | edit
A little something about you, the author. Nothing lengthy, just an overview.