-
7 Sep 2010 12:57 AM #1
combo box standard values
combo box standard values
Hello,
Having a form including a textbox and two combo boxes leads to the following behavior:
I need to set some standard values for the combo boxes. The only way I found to do this easily was using the dom options:
When I reload the page, the standard values are presented in the boxes and the focus is laid to the first one.Code:Ext.get('combo').dom.setValue("standardValue"); Ext.get('combo').dom.select(0,false);
As soon as I click somewhere on the page, it looses its focus and the values disappear.
Is there any trick to overcome this problem easily?
-
7 Sep 2010 1:09 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 40
Code:Ext.getCmp('combo').setValue('standardValue');
-
7 Sep 2010 4:04 AM #3
Thanks a lot! Last time I tried it didn't transfer the value. But now it works! Thanks again!
Similar Threads
-
multiple values in a combo box
By dlstrawn in forum Ext 3.x: Help & DiscussionReplies: 4Last Post: 3 May 2010, 8:12 AM -
Access combo box values
By noah977 in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 4 Mar 2008, 2:09 PM -
default values in combo box?
By trickytoad in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 27 Feb 2008, 5:44 AM -
[2.0a] Combo Box Values
By jakehawk in forum Ext 2.x: Help & DiscussionReplies: 3Last Post: 10 Oct 2007, 6:54 AM -
[2.0a] Combo Box Values
By jakehawk in forum Ext 1.x: Help & DiscussionReplies: 0Last Post: 9 Oct 2007, 10:12 AM


Reply With Quote